extentreports-java icon indicating copy to clipboard operation
extentreports-java copied to clipboard

Errors with JDK 16

Open simsekMcem opened this issue 3 years ago • 1 comments

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.

simsekMcem avatar Jun 09 '21 07:06 simsekMcem

This is solved by disabling json option from extent.properties

simsekMcem avatar Jun 17 '21 11:06 simsekMcem