Illegal reflective access by io.netty.util.internal.ReflectionUtil to DirectByteBuffer
See original GitHub issueExpected behavior
Actual behavior
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by io.netty.util.internal.ReflectionUtil (file:/Users/<user>/.m2/repository/io/netty/netty-all/4.1.52.Final/netty-all-4.1.52.Final.jar) to constructor java.nio.DirectByteBuffer(long,int) WARNING: Please consider reporting this to the maintainers of io.netty.util.internal.ReflectionUtil 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
Steps to reproduce
Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.52.Final
JVM version (e.g. java -version
)
java version “15” 2020-09-15 Java™ SE Runtime Environment (build 15+36-1562) Java HotSpot™ 64-Bit Server VM (build 15+36-1562, mixed mode, sharing)
OS version (e.g. uname -a
)
Darwin MacBook-Pro.local 20.1.0 Darwin Kernel Version 20.1.0: Thu Sep 24 20:22:06 PDT 2020; root:xnu-7195.40.89.100.3~1/RELEASE_X86_64 x86_64
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top GitHub Comments
@rafmichalak84 this is very strange as it should not try to do so by default…
Did you by any chance specify:
-Dio.netty.tryReflectionSetAccessible=true
?I will close this one for now again… Please reopen once you have more infos to provide