Re: JAVA 11: "illegal reflective access" warning
Posted by
Sven Gothel on
Dec 20, 2018; 2:12pm
URL: https://forum.jogamp.org/JAVA-11-illegal-reflective-access-warning-tp4039322p4039324.html
Thank you Markus,
surely worth a bug report entry, to be fixed.
Cheers,
~Sven
On 12/20/18 1:29 PM, blueencoder [via jogamp] wrote:
> Hi,
>
> at application run-time, when calling Platform.getOSAndArch() with a JAVA11
> RTE (Oracle, OpenJDK) a warning is printed through StdErr:
>
> /WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by com.jogamp.common.os.NativeLibrary$3
> (file:/C:/Users/.../gluegen-rt.jar) to method
> java.lang.ClassLoader.findLibrary(java.lang.String)
> WARNING: Please consider reporting this to the maintainers of
> com.jogamp.common.os.NativeLibrary$3
> WARNING: Use --illegal-access=warn to enable warnings of further illegal
> reflective access operations
> WARNING: *All illegal access operations will be denied in a future release*/
>
> I am using gluegen v2.3.2 (commit cc1e9bc).
> My application runs under Windows 7 / 10.
> Everything is still working with JAVA 11, but I am afraid that with a not too
> far in the future release of JAVA gluegen might fail to run properly.
> Because the last release of gluegen was in 2015, I wonder if it is still
> worked on...
>
> Greetings,
> Markus
>
> ------------------------------------------------------------------------------