8005964: Regression: difference in error recovery after ambiguity causes JCK test failure
Wrong implementation of ResolveError.access in AmbiguityError Reviewed-by: jjh
This commit is contained in:
parent
3b3feb3853
commit
5a60f56dbe
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user