make test failed due to java.lang.IllegalAccessError error
yydzero opened this issue · 3 comments
yydzero commented
$ java --version
openjdk 13.0.2 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)
$ make test --debug
./gradlew test
> Task :pxf-api:test FAILED
org.greenplum.pxf.api.security.SecureLoginTest > initializationError FAILED
java.lang.IllegalAccessError
org.apache.hadoop.security.PxfUserGroupInformationTest > initializationError FAILED
java.lang.IllegalAccessError
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/Users/yydzero/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-core/1.9.5/c3264abeea62c4d2f367e21484fbb40c7e256393/mockito-core-1.9.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
221 tests completed, 2 failed
FAILURE: Build failed with an exception.
frankgh commented
@yydzero currently compilation of PXF is only supported on Java 8. However, for the runtime, Java 11 is also supported. Do you need java 13 support?
yydzero commented
Thanks @frankgh for your quick response. I brew install java on mac, and it is version 13 by default.
I guess java is backward compatible, any reason why it will not work on 13?
frankgh commented
It will most likely run in Java 13, we just haven't certified it yet. To be able to run PXF tests however, you will need Java 8, because we have some Java 8-specific dependencies for testing. We are working to remove that limitation