Bug#1012081: jboss-classfilewriter: FTBFS with OpenJDK 17 due to test failures

Emmanuel Bourg ebourg at apache.org
Sun May 29 22:55:56 BST 2022


Source: jboss-classfilewriter
Version: 1.2.5-1
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17


jboss-classfilewriter fails to build with OpenJDK 17, almost all the tests fail:

  
  [INFO] -------------------------------------------------------
  [INFO]  T E S T S
  [INFO] -------------------------------------------------------
  [INFO] Running org.jboss.classfilewriter.test.simple.FieldTest
  [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.033 s <<< FAILURE! - in org.jboss.classfilewriter.test.simple.FieldTest
  [ERROR] testCreatingField(org.jboss.classfilewriter.test.simple.FieldTest)  Time elapsed: 0.008 s  <<< ERROR!
  java.lang.Error: java.lang.NoSuchFieldException: override
          at org.jboss.classfilewriter.test.simple.FieldTest.testCreatingField(FieldTest.java:45)
  Caused by: java.lang.NoSuchFieldException: override
          at org.jboss.classfilewriter.test.simple.FieldTest.testCreatingField(FieldTest.java:45)
  
  [INFO] Running org.jboss.classfilewriter.test.simple.MethodTest
  [ERROR] Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in org.jboss.classfilewriter.test.simple.MethodTest
  [ERROR] testCreatingMethod(org.jboss.classfilewriter.test.simple.MethodTest)  Time elapsed: 0 s  <<< ERROR!
  java.lang.NoClassDefFoundError: Could not initialize class org.jboss.classfilewriter.DefaultClassFactory
          at org.jboss.classfilewriter.test.simple.MethodTest.testCreatingMethod(MethodTest.java:53)
  
  [ERROR] testExceptionTypes(org.jboss.classfilewriter.test.simple.MethodTest)  Time elapsed: 0 s  <<< ERROR!
  java.lang.NoClassDefFoundError: Could not initialize class org.jboss.classfilewriter.DefaultClassFactory
          at org.jboss.classfilewriter.test.simple.MethodTest.testExceptionTypes(MethodTest.java:79)
  
  [INFO] Running org.jboss.classfilewriter.test.simple.SimpleTest
  [ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in org.jboss.classfilewriter.test.simple.SimpleTest
  [ERROR] simpleTest(org.jboss.classfilewriter.test.simple.SimpleTest)  Time elapsed: 0 s  <<< ERROR!
  java.lang.NoClassDefFoundError: Could not initialize class org.jboss.classfilewriter.DefaultClassFactory
          at org.jboss.classfilewriter.test.simple.SimpleTest.simpleTest(SimpleTest.java:32)
  
  [ERROR] testAddingInterfaces(org.jboss.classfilewriter.test.simple.SimpleTest)  Time elapsed: 0 s  <<< ERROR!
  java.lang.NoClassDefFoundError: Could not initialize class org.jboss.classfilewriter.DefaultClassFactory
          at org.jboss.classfilewriter.test.simple.SimpleTest.testAddingInterfaces(SimpleTest.java:46)
  
  [ERROR] testDefaultInterface(org.jboss.classfilewriter.test.simple.SimpleTest)  Time elapsed: 0 s  <<< ERROR!
  java.lang.NoClassDefFoundError: Could not initialize class org.jboss.classfilewriter.DefaultClassFactory
          at org.jboss.classfilewriter.test.simple.SimpleTest.testDefaultInterface(SimpleTest.java:39)
  
  ...

  [INFO]
  [ERROR] Tests run: 177, Failures: 0, Errors: 171, Skipped: 0
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------



More information about the pkg-java-maintainers mailing list