Bug#1012106: libreflectasm-java: FTBFS with OpenJDK 17 due to test failures
Emmanuel Bourg
ebourg at apache.org
Mon May 30 10:04:50 BST 2022
Package: libreflectasm-java
Version: 1.11.6+dfsg-1
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17
libreflectasm-java fails to build with OpenJDK 17, several tests fail (maybe due to illegal reflective accesses?) :
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.esotericsoftware.reflectasm.MethodAccessTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.043 s - in com.esotericsoftware.reflectasm.MethodAccessTest
[INFO] Running com.esotericsoftware.reflectasm.ClassLoaderTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 s - in com.esotericsoftware.reflectasm.ClassLoaderTest
[INFO] Running com.esotericsoftware.reflectasm.ConstructorAccessTest
Unexpected exception happened: java.lang.RuntimeException: Class cannot be created (the no-arg constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): com.esotericsoftware.reflectasm.ConstructorAccessTest$HasProtectedConstructor
Unexpected exception happened: java.lang.RuntimeException: Class cannot be created (the no-arg constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): com.esotericsoftware.reflectasm.ConstructorAccessTest$HasPublicConstructor
Expected exception happened: java.lang.RuntimeException: Class cannot be created (missing no-arg constructor): com.esotericsoftware.reflectasm.ConstructorAccessTest$HasArgumentConstructor
Unexpected exception happened: java.lang.RuntimeException: Class cannot be created (the no-arg constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): com.esotericsoftware.reflectasm.ConstructorAccessTest$HasPackageProtectedConstructor
Expected exception happened: java.lang.RuntimeException: Class cannot be created (the no-arg constructor is private): com.esotericsoftware.reflectasm.ConstructorAccessTest$HasPrivateConstructor
[ERROR] Tests run: 7, Failures: 3, Errors: 1, Skipped: 0, Time elapsed: 0.01 s <<< FAILURE! - in com.esotericsoftware.reflectasm.ConstructorAccessTest
[ERROR] testHasProtectedConstructor(com.esotericsoftware.reflectasm.ConstructorAccessTest) Time elapsed: 0.004 s <<< FAILURE!
junit.framework.AssertionFailedError
at com.esotericsoftware.reflectasm.ConstructorAccessTest.testHasProtectedConstructor(ConstructorAccessTest.java:74)
[ERROR] testHasPublicConstructor(com.esotericsoftware.reflectasm.ConstructorAccessTest) Time elapsed: 0.001 s <<< FAILURE!
junit.framework.AssertionFailedError
at com.esotericsoftware.reflectasm.ConstructorAccessTest.testHasPublicConstructor(ConstructorAccessTest.java:98)
[ERROR] testPackagePrivateNewInstance(com.esotericsoftware.reflectasm.ConstructorAccessTest) Time elapsed: 0.001 s <<< ERROR!
java.lang.RuntimeException: Class cannot be created (the no-arg constructor is protected or package-protected, and its ConstructorAccess could not be defined in the same class loader): com.esotericsoftware.reflectasm.ConstructorAccessTest$PackagePrivateClass
at com.esotericsoftware.reflectasm.ConstructorAccessTest.testPackagePrivateNewInstance(ConstructorAccessTest.java:31)
[ERROR] testHasPackageProtectedConstructor(com.esotericsoftware.reflectasm.ConstructorAccessTest) Time elapsed: 0.001 s <<< FAILURE!
junit.framework.AssertionFailedError
at com.esotericsoftware.reflectasm.ConstructorAccessTest.testHasPackageProtectedConstructor(ConstructorAccessTest.java:86)
[INFO] Running com.esotericsoftware.reflectasm.FieldAccessTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.esotericsoftware.reflectasm.FieldAccessTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] ConstructorAccessTest.testHasPackageProtectedConstructor:86
[ERROR] ConstructorAccessTest.testHasProtectedConstructor:74
[ERROR] ConstructorAccessTest.testHasPublicConstructor:98
[ERROR] Errors:
[ERROR] ConstructorAccessTest.testPackagePrivateNewInstance:31 » Runtime Class cannot ...
[INFO]
[ERROR] Tests run: 16, Failures: 3, Errors: 1, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
More information about the pkg-java-maintainers
mailing list