PaperMC / Waterfall

BungeeCord fork that aims to improve performance and stability.
https://papermc.io
MIT License
742 stars 302 forks source link

Incompatibility with java 11 - sun.reflect.Reflection.getCallerClass is not supported #293

Closed mibby closed 6 years ago

mibby commented 6 years ago

Waterfall dev 227 Java 11

Recently migrated over to Java 11 since Java 8 is EOL. Noticed this warning coming from Waterfall during start-up initialization.

[04:32:13] [Server] INFO WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
[04:32:14] [main/INFO]: Using mbed TLS based native cipher.
[04:32:14] [main/INFO]: Using zlib based native compressor.
[04:32:14] [main/INFO]: Enabled Waterfall version git:Waterfall-Bootstrap:1.13-SNAPSHOT:3019b5b:227
[04:32:14] [main/INFO]: Not on Windows, attempting to use enhanced EpollEventLoop
[04:32:14] [main/INFO]: Epoll is working, utilising it!
[04:32:14] [main/INFO]: Loaded plugin BungeeControlBridge version 3.3 by kangarko
[04:32:14] [main/INFO]: Loaded plugin Reconnect version 1.0.3 by 5zig (Development), Krymonota (Contribution), Terrobility (Addition Configs), krusic22 (1.12.2 Fix)
[04:32:14] [main/INFO]: Loaded plugin BungeeResourcepacks version 1.6.19-SNAPSHOT (build 225) by Phoenix616
[04:32:14] [main/INFO]: Loaded plugin SchematicaPlugin version 1.8-1.1.0.2 by Lunatrius
[04:32:14] [main/INFO]: Loaded plugin ServerListPlus version 3.5.0-SNAPSHOT by Minecrell (https://github.com/Minecrell)
[04:32:14] [main/INFO]: Loaded plugin BungeeTabListPlus version 2.8.10-SNAPSHOT by CodeCrafter47
[04:32:14] [main/INFO]: Started listening on channel: plugin:chatcontrol
[04:32:14] [main/INFO]: Enabled plugin BungeeControlBridge version 3.3 by kangarko
[04:32:14] [main/INFO]: Enabled plugin Reconnect version 1.0.3 by 5zig (Development), Krymonota (Contribution), Terrobility (Addition Configs), krusic22 (1.12.2 Fix)
[04:32:14] [main/INFO]: Enabled plugin BungeeResourcepacks version 1.6.19-SNAPSHOT (build 225) by Phoenix616
[04:32:14] [main/INFO]: Enabled plugin SchematicaPlugin version 1.8-1.1.0.2 by Lunatrius
[04:32:14] [main/INFO]: Enabled plugin ServerListPlus version 3.5.0-SNAPSHOT by Minecrell (https://github.com/Minecrell)
[04:32:14] [main/INFO]: Enabled plugin BungeeTabListPlus version 2.8.10-SNAPSHOT by CodeCrafter47
[04:32:14] [Netty Boss IO Thread #0/INFO]: Listening on /0.0.0.0:25565
Janmm14 commented 6 years ago

How do you call that "incompatibility"?

It seems to still work completely fine - its jsut a warning.

Mystiflow commented 6 years ago

If this doesn't occur in BungeeCord it might be because of the Log4J addition.

https://github.com/apache/logging-log4j2/blob/master/log4j-api/src/main/java/org/apache/logging/log4j/util/StackLocator.java ~~ https://github.com/PaperMC/Waterfall/blob/master/BungeeCord-Patches/0037-Use-Log4j2-for-logging-and-TerminalConsoleAppender-f.patch

electronicboy commented 6 years ago

Ultimately not ideal, but java 11 is still new and many parts of the ecosystem are still behind, such as the library causing that warning; I'll leave this open for meta as a reminder to track upstream for fixes to this issue

Mihir3009 commented 4 years ago

I am running Lucene Indexing technique using JAVA 11 and got the same warning on google colab, however, it did not affect the performance a bit. It's just a warning and you can ignore it.

mikroskeem commented 4 years ago

Please do not bump stone age issues without any proper reason. This issue has been solved long time ago.