Login  Register

Re: java11 + release progress thread (also: review)

Posted by Sven Gothel on Sep 04, 2019; 2:39am
URL: https://forum.jogamp.org/java11-release-progress-thread-also-review-tp4039948p4040021.html

I had to change access to internal non-exported
functionality of module java.desktop etc.

This is a workaround (hack) to access certain
modularized encapsulated (hidden) functionality
where there is no replacement.

We simply cannot avoid it foremost for JOGL/AWT.

Therefor I added UnsafeUtil to GlueGen to have
access well centralized via its
'T doWithoutIllegalAccessLogger(Action<T> action)' method.
Here, we simply disable the IllegalAccessLogger temporarily.

<https://jogamp.org/cgit/gluegen.git/commit/?h=java11&id=07c1885e9a3d1f3a3853414648c06fb3864bc69f>

You can see its usage also in JAWTUtil now:

<https://jogamp.org/cgit/jogl.git/commit/?h=java11&id=c5431f46b7bf64f109315ec78461859dd88f202a>

~Sven