Whle upgrading to Java 9 mvn clean package gave the following output:
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/home/shivasubramanian/.m2/repository/org/mockito/mockito-core/1.8.5/mockito-core-1.8.5.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
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
This should be fixed if we upgrade Mockito to a version that supports Java 9.
Whle upgrading to Java 9
mvn clean package
gave the following output:This should be fixed if we upgrade Mockito to a version that supports Java 9.