Skip to content

Commit 8d0873c

Browse files
committed
Fail back to symbol name as type key
1 parent 87ead9e commit 8d0873c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -769,11 +769,15 @@ static void getKey(StringBuilder builder, Type typeToBuild, String n, boolean is
769769
default: // fall through to unsupported operation exception
770770
}
771771
}
772-
if (typeToBuild.isNullOrReference()) {
773-
// should be null, since we've handled references
772+
// failback
773+
if (!typeToBuild.isErroneous()) {
774+
String toAppend = typeToBuild.tsym.flatName().toString();
775+
if (useSlashes) {
776+
toAppend.replace('.', '/');
777+
}
778+
builder.append(toAppend);
774779
return;
775780
}
776-
throw new UnsupportedOperationException("Unimplemented method 'getKey'");
777781
}
778782

779783
@Override

0 commit comments

Comments
 (0)