extentreports-java
extentreports-java copied to clipboard
Errors with JDK 16
Hi,
We have an issue with the library. When we changed our java version to 16, two errors showed up.
Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project app: Fatal error compiling: java.lang.IllegalAccessError: class lombok.javac.apt.LombokProcessor (in unnamed module @0x6a2badb1) cannot access class com.sun.tools.javac.processing.JavacProcessingEnvironment (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.processing to unnamed module @0x6a2badb1 -> [Help 1]
This issue was solved in lombok library. By upgrading lombok version to 1.18.20, you can solve it. But the new error occured.
java.lang.reflect.InaccessibleObjectException: Unable to make field private java.lang.String java.lang.Throwable.detailMessage accessible: module java.base does not "opens java.lang" to unnamed module @324e4822
I have no idea on this error. Do you have any idea or workaround for this? 🆘
Thanks for your time.
This is solved by disabling json option from extent.properties