Bug#1012068: classmate: FTBFS with OpenJDK 17 due to test failures
Emmanuel Bourg
ebourg at apache.org
Sun May 29 17:50:28 BST 2022
Source: classmate
Version: 1.3.4-1.1
Severity: important
Tags: ftbfs sid bookworm
User: debian-java at lists.debian.org
Usertags: default-java17
classmate fails to build with OpenJDK 17, several tests fail:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.fasterxml.classmate.TestSubtypeResolution
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.036 s - in com.fasterxml.classmate.TestSubtypeResolution
[INFO] Running com.fasterxml.classmate.TestMemberGenericTypes
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s - in com.fasterxml.classmate.TestMemberGenericTypes
[INFO] Running com.fasterxml.classmate.ResolvedTypeTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in com.fasterxml.classmate.ResolvedTypeTest
[INFO] Running com.fasterxml.classmate.TestSelfRefMemberTypes
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.fasterxml.classmate.TestSelfRefMemberTypes
[INFO] Running com.fasterxml.classmate.OddJDKTypesTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.fasterxml.classmate.OddJDKTypesTest
[INFO] Running com.fasterxml.classmate.StdConfigurationTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.019 s - in com.fasterxml.classmate.StdConfigurationTest
[INFO] Running com.fasterxml.classmate.TestReadme
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.008 s - in com.fasterxml.classmate.TestReadme
[INFO] Running com.fasterxml.classmate.TestTypeResolver
[INFO] Tests run: 19, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.012 s - in com.fasterxml.classmate.TestTypeResolver
[INFO] Running com.fasterxml.classmate.AnnotationsTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.fasterxml.classmate.AnnotationsTest
[INFO] Running com.fasterxml.classmate.types.ResolvedPrimitiveTypeTest
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.035 s - in com.fasterxml.classmate.types.ResolvedPrimitiveTypeTest
[INFO] Running com.fasterxml.classmate.types.ResolvedObjectTypeTest
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.002 s <<< FAILURE! - in com.fasterxml.classmate.types.ResolvedObjectTypeTest
[ERROR] testGetStaticFields(com.fasterxml.classmate.types.ResolvedObjectTypeTest) Time elapsed: 0.002 s <<< FAILURE!
junit.framework.AssertionFailedError: Expected 3 (JDK 1.6), 4 (1.7/1.8) or 6 (1.9) static fields, got 7; fields: [serialVersionUID, COMPACT_STRINGS, serialPersistentFields, REPL, CASE_INSENSITIVE_ORDER, LATIN1, UTF16]
at com.fasterxml.classmate.types.ResolvedObjectTypeTest.testGetStaticFields(ResolvedObjectTypeTest.java:81)
[INFO] Running com.fasterxml.classmate.types.ResolvedInterfaceTypeTest
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.types.ResolvedInterfaceTypeTest
[INFO] Running com.fasterxml.classmate.types.ResolvedRecursiveTypeTest
[INFO] Tests run: 16, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.fasterxml.classmate.types.ResolvedRecursiveTypeTest
[INFO] Running com.fasterxml.classmate.types.TypePlaceHolderTest
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.fasterxml.classmate.types.TypePlaceHolderTest
[INFO] Running com.fasterxml.classmate.types.ResolvedArrayTypeTest
[INFO] Tests run: 13, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.fasterxml.classmate.types.ResolvedArrayTypeTest
[INFO] Running com.fasterxml.classmate.TypeBindingsTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.TypeBindingsTest
[INFO] Running com.fasterxml.classmate.TestParameterAnnotations
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.003 s - in com.fasterxml.classmate.TestParameterAnnotations
[INFO] Running com.fasterxml.classmate.TestMemberResolver
[ERROR] Tests run: 10, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.004 s <<< FAILURE! - in com.fasterxml.classmate.TestMemberResolver
[ERROR] testAddOverridesFromInterfaces(com.fasterxml.classmate.TestMemberResolver) Time elapsed: 0.001 s <<< FAILURE!
junit.framework.AssertionFailedError: expected:<4> but was:<6>
at com.fasterxml.classmate.TestMemberResolver.testAddOverridesFromInterfaces(TestMemberResolver.java:292)
[INFO] Running com.fasterxml.classmate.ResolvedTypeWithMembersTest
[INFO] Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.006 s - in com.fasterxml.classmate.ResolvedTypeWithMembersTest
[INFO] Running com.fasterxml.classmate.TestTypeDescriptions
[ERROR] Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0 s <<< FAILURE! - in com.fasterxml.classmate.TestTypeDescriptions
[ERROR] testSimpleTypes(com.fasterxml.classmate.TestTypeDescriptions) Time elapsed: 0 s <<< FAILURE!
junit.framework.ComparisonFailure: expected:<...va.lang.CharSequence[]> but was:<...va.lang.CharSequence[,java.lang.constant.Constable,java.lang.constant.ConstantDesc]>
at com.fasterxml.classmate.TestTypeDescriptions.testSimpleTypes(TestTypeDescriptions.java:38)
[INFO] Running com.fasterxml.classmate.AnnotationInclusionTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.AnnotationInclusionTest
[INFO] Running com.fasterxml.classmate.members.RawMethodTest
[INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.fasterxml.classmate.members.RawMethodTest
[INFO] Running com.fasterxml.classmate.members.RawFieldTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.042 s - in com.fasterxml.classmate.members.RawFieldTest
[INFO] Running com.fasterxml.classmate.members.ResolvedMemberTest
[INFO] Tests run: 12, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in com.fasterxml.classmate.members.ResolvedMemberTest
[INFO] Running com.fasterxml.classmate.members.RawConstructorTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.members.RawConstructorTest
[INFO] Running com.fasterxml.classmate.members.ResolvedMethodTest
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.members.ResolvedMethodTest
[INFO] Running com.fasterxml.classmate.members.RawMemberTest
[INFO] Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.002 s - in com.fasterxml.classmate.members.RawMemberTest
[INFO] Running com.fasterxml.classmate.members.HierarchicTypeTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.fasterxml.classmate.members.HierarchicTypeTest
[INFO] Running com.fasterxml.classmate.members.Issue28Test
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.members.Issue28Test
[INFO] Running com.fasterxml.classmate.members.ResolvedFieldTest
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.001 s - in com.fasterxml.classmate.members.ResolvedFieldTest
[INFO] Running com.fasterxml.classmate.members.GhostTypeParameterInFieldTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.members.GhostTypeParameterInFieldTest
[INFO] Running com.fasterxml.classmate.members.ResolvedConstructorTest
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.members.ResolvedConstructorTest
[INFO] Running com.fasterxml.classmate.util.TestResolvedTypeCache
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 s - in com.fasterxml.classmate.util.TestResolvedTypeCache
[INFO] Running com.fasterxml.classmate.util.MethodKeyTest
[INFO] Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.util.MethodKeyTest
[INFO] Running com.fasterxml.classmate.util.ClassKeyTest
[INFO] Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 s - in com.fasterxml.classmate.util.ClassKeyTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestMemberResolver.testAddOverridesFromInterfaces:292 expected:<4> but was:<6>
[ERROR] TestTypeDescriptions.testSimpleTypes:38 expected:<...va.lang.CharSequence[]> but was:<...va.lang.CharSequence[,java.lang.constant.Constable,java.lang.constant.ConstantDesc]>
[ERROR] ResolvedObjectTypeTest.testGetStaticFields:81 Expected 3 (JDK 1.6), 4 (1.7/1.8) or 6 (1.9) static fields, got 7; fields: [serialVersionUID, COMPACT_STRINGS, serialPersistentFields, REPL, CASE_INSENSITIVE_ORDER, LATIN1, UTF16]
[INFO]
[ERROR] Tests run: 225, Failures: 3, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
More information about the pkg-java-maintainers
mailing list