提交 e119c6fd 编写于 作者: M mcimadamore

8005964: Regression: difference in error recovery after ambiguity causes JCK test failure

Summary: Wrong implementation of ResolveError.access in AmbiguityError
Reviewed-by: jjh
上级 7c86c5ec
......@@ -3421,7 +3421,10 @@ public class Resolve {
@Override
protected Symbol access(Name name, TypeSymbol location) {
return ambiguousSyms.last();
Symbol firstAmbiguity = ambiguousSyms.last();
return firstAmbiguity.kind == TYP ?
types.createErrorType(name, location, firstAmbiguity.type).tsym :
firstAmbiguity;
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册