LuckPerms

LuckPerms

41.4k Downloads

[Java 10] An illegal reflective access operation has occurred.

mibby opened this issue ยท 4 comments

commented

LuckPerms dev 635
Paper dev 1403 (Spigot 1.12.2)
Java SE 10.0.1

@lucko Updated my server environment to java 10 out of curiosity. Surprised to find that out of 110+ plugins, only 2 actually had issues. Figured I'd forward this to you. :)

2018-04-28 11:38:34,739 INFO [Server] INFO WARNING: An illegal reflective access operation has occurred
2018-04-28 11:38:34,739 INFO [Server] INFO WARNING: Illegal reflective access by me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader (file:/home/minecraft/multicraft/servers/server2/plugins/LuckPerms-Bukkit-4.1.83.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
2018-04-28 11:38:34,739 INFO [Server] INFO WARNING: Please consider reporting this to the maintainers of me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader
2018-04-28 11:38:34,739 INFO [Server] INFO WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2018-04-28 11:38:34,739 INFO [Server] INFO WARNING: All illegal access operations will be denied in a future release

Java SE 8u172 doesn't show this error at start-up, but then again, no other plugin but LuckPerms outputs it on Java 10.

commented

You can ignore the warning for now.

There's not currently any alternative methods or APIs available to achieve the same thing without reflection (to my knowledge)

All illegal access operations will be denied in a future release

Not sure when/if that will happen - I'm hoping that there with be an alternative method available by then. Until it happens, there's not really much I can do.

commented

Oof. I was concerned about LuckPerms eventually not working because of this.

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader (file:/Users/alexis/Documents/minecraft/development/Minecraft-Test-Server/plugins/LuckPerms-Bukkit-5.0.72.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of me.lucko.luckperms.common.dependencies.classloader.ReflectionClassLoader
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
[01:30:33 INFO]: [LuckPerms] Loading LuckPerms v5.0.72

commented

Nothing to worry about for now.

commented

Finally figured out a fix!