8033218: Silent failure in TypeAnnotations.resolveFrame
Change silent no-op to assertion failure when resolveFrame is called before attribution. Reviewed-by: jfranck
This commit is contained in:
parent
214de0eb69
commit
ca53cc64e5
@ -912,11 +912,7 @@ public class TypeAnnotations {
|
||||
// not care about inner types.
|
||||
JCAnnotatedType atypetree = (JCAnnotatedType) frame;
|
||||
final Type utype = atypetree.underlyingType.type;
|
||||
if (utype == null) {
|
||||
// This might happen during DeferredAttr;
|
||||
// we will be back later.
|
||||
return;
|
||||
}
|
||||
Assert.checkNonNull(utype);
|
||||
Symbol tsym = utype.tsym;
|
||||
if (tsym.getKind().equals(ElementKind.TYPE_PARAMETER) ||
|
||||
utype.getKind().equals(TypeKind.WILDCARD) ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user