Skip to content

Commit 286e03e

Browse files
robstrykermickaelistria
authored andcommitted
Fixes test0300
Signed-off-by: Rob Stryker <[email protected]>
1 parent 32c29f2 commit 286e03e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacBindingResolver.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -644,6 +644,10 @@ public ITypeBinding resolveType(Type type) {
644644
return this.bindings.getTypeBinding(((JCNewArray)jcArrayCreation).type);
645645
}
646646
JCTree jcTree = this.converter.domToJavac.get(type);
647+
if( !this.isRecoveringBindings && jcTree.type instanceof ErrorType) {
648+
return null;
649+
}
650+
647651
if (jcTree instanceof JCIdent ident && ident.type != null) {
648652
if (ident.type instanceof PackageType) {
649653
return null;

0 commit comments

Comments
 (0)