Java 9 warning for Afterburner
See original GitHub issueWhen compiling a Dropwizard project with Java 9, Jackson compilation throws the following error,
WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.fasterxml.jackson.module.afterburner.util.MyClassLoader (file:/Users/user/Code/application.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int) WARNING: Please consider reporting this to the maintainers of com.fasterxml.jackson.module.afterburner.util.MyClassLoader 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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:57
- Comments:54 (25 by maintainers)
Top Results From Across the Web
Developers - Java 9 warning for Afterburner - - Bountysource
When compiling a Dropwizard project with Java 9, Jackson compilation throws the following error,. WARNING: An illegal reflective access ...
Read more >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 >JDK 11 migration issue from JDK8, Illegal reflective access by ...
Please advise on this. WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.fasterxml.jackson.
Read more >Release notes - Dropwizard-guicey - GitHub Pages
... instead of afterburner. On java 8 you'll see the following warning on application startup: ... BlackbirdModule: Unable to find Java 9+ MethodHandles....
Read more >java - Oracle Help Center
For performance reasons, JDK 9 does not issue warnings for illegal static-access operations. --limit-modules module[,module...] Specifies the limit of the ...
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
11 is out in September and 3.x might not be out until then? i.e. might be worth considering.
Adding this gets me past the warning…
--add-opens java.base/java.lang=ALL-UNNAMED
Still needs a better solution though, but its a start.