Skip to content

Commit 36146d1

Browse files
mickaelistriarobstryker
authored andcommitted
Fix getKey for arrays
1 parent 10593d0 commit 36146d1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacTypeBinding.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,9 @@ private String computeKey() {
433433
}
434434
return key;
435435
}
436+
if (isArray()) {
437+
return "[" + getComponentType().getKey();
438+
}
436439
String b3 = getKeyWithPossibleGenerics(this.type, this.typeSymbol, tb -> tb != null ? tb.getKey() : KeyUtils.OBJECT_KEY, true);
437440
if( (this.type.isSuperBound() || this.type.isExtendsBound()) && this.type instanceof WildcardType wt) {
438441
String base1 = getKey(this.type, this.typeSymbol.flatName(), false, true);

0 commit comments

Comments
 (0)