Java 11 compatibility
igr opened this issue · comments
This issue is a summary of issues related to Java11. I am aware of those, but I can't afford to maintain two versions of the library. Multi-release jars is not a solution either - hard to maintain as well.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jodd.util.ClassUtil (file:/Users/testuser/.gradle/caches/modules-2/files-2.1/org.jodd/jodd-core/5.0.13/a7ecea06b18bfa5bae2c860cee057d231efa2a75/jodd-core-5.0.13.jar) to method java.util.LinkedHashMap.newNode(int,java.lang.Object,java.lang.Object,java.util.HashMap$Node)
WARNING: Please consider reporting this to the maintainers of jodd.util.ClassUtil
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
openjdk version "11.0.2" 2019-01-15
11:07:50.325 [main] INFO jodd.madvoc.AutomagicMadvocConfigurator - Scanning...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by jodd.bridge.DefineClass (file:/data/web/fxz/jodd5/WEB-INF/lib/jodd-all-5.0.13.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of jodd.bridge.DefineClass
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
11:07:51.714 [main] INFO jodd.madvoc.AutomagicMadvocConfigurator - Scanning is complete.
One idea is to switch to version 9 and maintain version 8 branch. There are 2 major java 9 issues, currently:
- Unsafe
- Reading classes from classpath, i.e. scanning.
All Jodd repos promoted to v6 are Java11 compatible.