8033218: Silent failure in TypeAnnotations.resolveFrame
authoremc
Thu, 30 Jan 2014 07:35:49 -0500
changeset 22699 3b17c61ad5a1
parent 22698 818555741cd5
child 22700 fff5613a52e3
8033218: Silent failure in TypeAnnotations.resolveFrame Summary: Change silent no-op to assertion failure when resolveFrame is called before attribution. Reviewed-by: jfranck
langtools/src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java
--- a/langtools/src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java	Wed Jan 29 14:32:27 2014 -0800
+++ b/langtools/src/share/classes/com/sun/tools/javac/code/TypeAnnotations.java	Thu Jan 30 07:35:49 2014 -0500
@@ -912,11 +912,7 @@
                         // 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) ||