diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacMethodBinding.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacMethodBinding.java index 1cfa53c0ca4..3dc8561048f 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacMethodBinding.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/dom/JavacMethodBinding.java @@ -252,6 +252,9 @@ private IJavaElement getJavaElementForMethodDeclaration(IType currentType, Metho private String resolveTypeName(com.sun.tools.javac.code.Type type, boolean binary) { if (binary) { + if (type instanceof com.sun.tools.javac.code.Type.ArrayType arrayType) { + return resolveTypeName(arrayType.elemtype, binary) + "[]"; + } TypeSymbol sym = type.asElement(); if (sym != null) { return sym.getQualifiedName().toString();