Java 9 warning - illegal reflective access
See original GitHub issueJust wanted to report this warning I’m seeing now since I am giving Java 9 a go (for native alpn/ssl stuff that’s not directly related to Redisson).
This warning is shown on stdout when I start up my runnable/uber jar:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.redisson.config.ConfigSupport (file:/opt/rt_deploy/ej_test/target/rt-push-server.jar) to method java.net.URI.lowMask(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.redisson.config.ConfigSupport
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
So far it appears everything is working fine, but figured it might be worth reporting, since it says it will eventually be denied in a future Java 9 release.
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Java 9 Illegal Reflective Access Warning - Baeldung
Before Java 9, the Java Reflection API has a superpower: It could gain access to the non-public class members without limitation.
Read more >What is an illegal reflective access? - java - Stack Overflow
The first reflective-access operation to any such package causes a warning to be issued, but no warnings are issued after that point. This ......
Read more >How to fix “an illegal reflective access operation has occurred”
The "an illegal reflective access operation has occurred" warning message is related to the unauthorized access to parts of the JDK made by ......
Read more >"illegal reflective access" under Java 9, 10, 11 - Shibboleth
1WARNING: An illegal reflective access operation has occurred 2WARNING: Illegal reflective access by org.springframework.beans.
Read more >Illegal reflective access by com.google.protobuf.UnsafeUtil ...
Java 9 WARNING : Illegal reflective access by com.google.protobuf.UnsafeUtil #459. eed3si9n opened this issue on Nov 26, 2017 · 21 comments.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any reason this was closed? Seems like a very simple fix would be to simply check of an underscore is used in the URI before applying this hack?
Trying to clear all Java 9+ warnings/errors out of the logs.
After this I discovered that Netty (which Redisson depends on) also has a warning about illegal reflective access. I filed netty/netty#8318 for that and submitted netty/netty#8319 as a fix.