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

Created on 28 Apr 2018  路  3Comments  路  Source: lucko/LuckPerms

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.

question

Most helpful comment

Nothing to worry about for now.

All 3 comments

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.

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

Nothing to worry about for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SpaicyGaming picture SpaicyGaming  路  3Comments

Zekrin picture Zekrin  路  3Comments

sfxworks picture sfxworks  路  3Comments

GiaNTizmO picture GiaNTizmO  路  3Comments

Sssssti picture Sssssti  路  4Comments