Skip to content

Commit

Permalink
Add SequencedCollection to BANNED_INTERFACE_TYPES
Browse files Browse the repository at this point in the history
This is done because this type exists in Java 21
but not Java 17.

Fixes: #37768
  • Loading branch information
geoand committed Dec 15, 2023
1 parent 7b07629 commit 83b8df3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public final class Types {

// 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<DotName> BANNED_INTERFACE_TYPES = Collections.emptySet();
private static final Set<DotName> BANNED_INTERFACE_TYPES = Set.of(DotName.createSimple("java.util.SequencedCollection"));

private Types() {
}
Expand Down

0 comments on commit 83b8df3

Please sign in to comment.