Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Illegal reflective access by org.eclipse.paho.client.mqttv3.internal.FileLock went away in JDK 17?
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 is currently offline Steve PriorFriend
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

Previous Topic:full publish vs single
Next Topic:on_log callback not being triggered
Goto Forum:
  


Current Time: Fri May 03 13:37:50 GMT 2024

Powered by FUDForum. Page generated in 0.03038 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top