Bug#892937: cglib: FTBFS with openjdk-9 due to failing tests

Tiago Stürmer Daitx tiago.daitx at canonical.com
Wed Mar 14 17:46:37 UTC 2018


Source: cglib
Version: 3.2.6-1
Severity: normal

Dear Maintainer,

When building with openjdk-9, for which there will be hopefully a
transition soon.

There are currently 5 tests that fail (setting 'nocheck' in
DEB_BUILD_OPTIONS allow the build to succeed).


[ERROR] Tests run: 51, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.821 s <<< FAILURE! - in net.sf.cglib.proxy.TestEnhancer
[ERROR] testSql(net.sf.cglib.proxy.TestEnhancer)  Time elapsed: 0.021 s  <<< ERROR!
net.sf.cglib.core.CodeGenerationException: java.lang.reflect.InvocationTargetException-->null
	at net.sf.cglib.proxy.TestEnhancer.testSql(TestEnhancer.java:819)
Caused by: java.lang.reflect.InvocationTargetException
	at net.sf.cglib.proxy.TestEnhancer.testSql(TestEnhancer.java:819)
Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/proxy/Factory
	at net.sf.cglib.proxy.TestEnhancer.testSql(TestEnhancer.java:819)
Caused by: java.lang.ClassNotFoundException: net.sf.cglib.proxy.Factory
	at net.sf.cglib.proxy.TestEnhancer.testSql(TestEnhancer.java:819)


[ERROR] Tests run: 12, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.024 s <<< FAILURE! - in net.sf.cglib.reflect.TestFastClass
[ERROR] testPackagePrivateMethod_bootstrapClassLoader(net.sf.cglib.reflect.TestFastClass)  Time elapsed: 0 s  <<< ERROR!
java.lang.NoSuchMethodException: java.lang.String.getChars([C, int)
	at net.sf.cglib.reflect.TestFastClass.testPackagePrivateMethod_bootstrapClassLoader(TestFastClass.java:663)


[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.007 s <<< FAILURE! - in net.sf.cglib.transform.impl.TestDemo
[ERROR] test(net.sf.cglib.transform.impl.TestDemo)  Time elapsed: 0.007 s  <<< ERROR!
java.lang.IllegalAccessError: Update to static final field net.sf.cglib.transform.impl.TransformDemo.CGLIB$FIELD_NAMES attempted from a different method (CGLIB$STATICHOOK77) than the initializer method <clinit>
	at net.sf.cglib.transform.impl.TestDemo.test(TestDemo.java:19)


[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in net.sf.cglib.transform.impl.TestProvideFields
[ERROR] initializationError(net.sf.cglib.transform.impl.TestProvideFields)  Time elapsed: 0 s  <<< ERROR!
java.lang.IllegalAccessError: Update to static final field net.sf.cglib.transform.AbstractTransformTest.CGLIB$FIELD_NAMES attempted from a different method (CGLIB$STATICHOOK82) than the initializer method <clinit>
	at net.sf.cglib.transform.impl.TestProvideFields.suite(TestProvideFields.java:69)


[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.022 s <<< FAILURE! - in net.sf.cglib.TestAll
[ERROR] initializationError(net.sf.cglib.TestAll)  Time elapsed: 0 s  <<< ERROR!
java.lang.IllegalAccessError: Update to static final field net.sf.cglib.transform.AbstractTransformTest.CGLIB$FIELD_NAMES attempted from a different method (CGLIB$STATICHOOK108) than the initializer method <clinit>
	at net.sf.cglib.TestAll.suite(TestAll.java:81)




The summary says:
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   TestAll.suite:81 ? IllegalAccess Update to static final field net.sf.cglib.tra...
[ERROR]   TestEnhancer.testSql:819 ? CodeGeneration java.lang.reflect.InvocationTargetEx...
[ERROR]   TestFastClass.testPackagePrivateMethod_bootstrapClassLoader:663 ? NoSuchMethod
[ERROR]   TestDemo.test:19 ? IllegalAccess Update to static final field net.sf.cglib.tra...
[ERROR]   TestProvideFields.suite:69->AbstractTransformTest.<clinit>:-1->AbstractTransformTest.CGLIB$STATICHOOK82:-1 ? IllegalAccess
[INFO]
[ERROR] Tests run: 156, Failures: 0, Errors: 5, Skipped: 0




I reported these failures upstream at https://github.com/cglib/cglib/issues/119

thanks
Tiago Daitx


-- System Information:
Debian Release: buster/sid
  APT prefers bionic
  APT policy: (500, 'bionic'), (400, 'bionic-proposed')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.15.0-10-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=en_US (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the pkg-java-maintainers mailing list