diff --git a/impl/src/test/java/org/jboss/weld/tests/unit/hierarchy/discovery/combined/CombinedHierarchyTest.java b/impl/src/test/java/org/jboss/weld/tests/unit/hierarchy/discovery/combined/CombinedHierarchyTest.java index 124dd2652b7..a05c3cc69e3 100644 --- a/impl/src/test/java/org/jboss/weld/tests/unit/hierarchy/discovery/combined/CombinedHierarchyTest.java +++ b/impl/src/test/java/org/jboss/weld/tests/unit/hierarchy/discovery/combined/CombinedHierarchyTest.java @@ -47,6 +47,13 @@ public void testInterfaceTypesResolved() { expectedTypes.add(Types.newParameterizedType(ArrayList.class, Integer.class)); expectedTypes.add(Types.newParameterizedType(Iterable.class, Integer.class)); + // JDK 21 adds interface java.util.SequencedCollection + try { + Class seqCollectionClazz = Class.forName("java.util.SequencedCollection"); + expectedTypes.add(Types.newParameterizedType(seqCollectionClazz, Integer.class)); + } catch (ClassNotFoundException e) { + // this just means we are running on older JDK + } HierarchyDiscovery discovery = new HierarchyDiscovery(Types.newParameterizedType(ArrayList.class, Integer.class)); Types.assertTypeSetMatches(expectedTypes, discovery.getTypeClosure()); } diff --git a/pom.xml b/pom.xml index 5ee4bff6794..226e3bb052c 100644 --- a/pom.xml +++ b/pom.xml @@ -68,7 +68,7 @@ 1.3.0.Final 4.7.3.4 4.7.3 - 3.0.13 + 3.0.20 2.70.0 0.8.8 3.1.3