I am using surifire, failsafe, mockito and powermock. Where ever I tried I got like power mock is not support for Java 11.
I have tried with the latest version of surefire also but it throws exception like. (build success if I skip the test cases)
Time elapsed: 0 sec <<< ERROR! org.objenesis.ObjenesisException: java.lang.reflect.InvocationTargetException
Caused by: java.lang.reflect.InvocationTargetException Caused by: java.lang.IllegalAccessError: class jdk.internal.reflect.ConstructorAccessorImpl loaded by org.powermock.core.classloader.MockClassLoader @77cf3f8b cannot access jdk/internal/reflect superclass jdk.internal.reflect.MagicAccessorImpl
Which version will resolve this issue? In order to support Java 11, maven-compiler-plugin 3.6.0
.