diff --git a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java index 27340b943a063..1673865997502 100644 --- a/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java +++ b/independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/Types.java @@ -4,7 +4,6 @@ import java.lang.reflect.Modifier; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; @@ -78,13 +77,9 @@ public final class Types { DotNames.DOUBLE, DotNames.CHARACTER); - // we ban these interfaces because they are new to Java 12 and are used by java.lang.String which - // means that they cannot be included in bytecode if we want to have application built with Java 12+ but targeting Java 8 - 11 - // actually run on those older versions + // we ban these interfaces because of mismatch between building JDK version and target JDK version // TODO: add a extensible banning mechanism based on predicates if we find that this set needs to grow... - private static final Set BANNED_INTERFACE_TYPES = new HashSet<>( - Arrays.asList(DotName.createSimple("java.lang.constant.ConstantDesc"), - DotName.createSimple("java.lang.constant.Constable"))); + private static final Set BANNED_INTERFACE_TYPES = Set.of(DotName.createSimple("java.util.SequencedCollection")); private Types() { } diff --git a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java index 0e004b19e854a..c489c10f0a0de 100644 --- a/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java +++ b/independent-projects/arc/tests/src/test/java/io/quarkus/arc/test/bean/types/EnumBeanTypesTest.java @@ -27,7 +27,7 @@ public void test() { InjectableBean bean = Arc.container().instance(ExtendedBoolean.class).getBean(); Set types = bean.getTypes(); - assertEquals(5, types.size()); + assertEquals(6, types.size()); assertTrue(types.contains(Object.class)); assertTrue(types.contains(Serializable.class)); assertTrue(types.contains(ExtendedBoolean.class));