1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Attr.java Thu Nov 14 12:32:57 2013 -0500 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Attr.java Thu Nov 14 19:28:20 2013 +0000 1.3 @@ -4602,9 +4602,8 @@ 1.4 validateAnnotatedType(t, t.type); 1.5 } 1.6 repeat = false; 1.7 - } else if (enclTr.getKind() == JCTree.Kind.PRIMITIVE_TYPE) { 1.8 - // This happens in test TargetTypeTest52.java 1.9 - // Is there anything to do? 1.10 + } else if (enclTr.getKind() == JCTree.Kind.PRIMITIVE_TYPE || 1.11 + enclTr.getKind() == JCTree.Kind.ERRONEOUS) { 1.12 repeat = false; 1.13 } else { 1.14 Assert.error("Unexpected tree: " + enclTr + " with kind: " + enclTr.getKind() +