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
(cherry picked from commit 674eac2)
  • Loading branch information
geoand authored and gsmet committed Dec 18, 2023
1 parent ce9fd60 commit aa99a21
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ public final class Types {
// 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 = new HashSet<>(
Arrays.asList(DotName.createSimple("java.lang.constant.ConstantDesc"),
DotName.createSimple("java.lang.constant.Constable")));
DotName.createSimple("java.lang.constant.Constable"),
DotName.createSimple("java.util.SequencedCollection")));

private Types() {
}
Expand Down

0 comments on commit aa99a21

Please sign in to comment.