Illegal reflective access by org.eclipse.paho.client.mqttv3.internal.FileLock went away in JDK 17? [message #1849477] |
Fri, 21 January 2022 06:05 |
Steve Prior Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Today I tried some Java code which was getting the following warning when compiled/run under JDK 11:
Illegal reflective access by org.eclipse.paho.client.mqttv3.internal.FileLock
I was expecting this to turn into a hard error with JDK17, but instead the code worked without any warning. I'm running mqttv3-1.2.5. If I run the same code in JDK 11 I get the warning, but JDK 17 I do not.
Just to make sure I was really running under JDK 17 and compiling to the 17 level I added a trivial Record class which wouldn't compile if I wasn't really running 17 and that worked perfectly.
So I'm confused, did the JDK developers change their minds about this type of reflective access, was the original warning generated by one part of the JRE calling another (and has since been fixed), or am I missing something?
[Updated on: Fri, 21 January 2022 17:12] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03038 seconds