diff -r 19e8eebfbe52 -r b0c086cd4520 src/share/classes/com/sun/tools/javac/comp/Annotate.java --- a/src/share/classes/com/sun/tools/javac/comp/Annotate.java Tue Oct 15 22:15:35 2013 +0200 +++ b/src/share/classes/com/sun/tools/javac/comp/Annotate.java Tue Oct 15 15:57:13 2013 -0700 @@ -250,7 +250,8 @@ a.type = chk.checkType(a.annotationType.pos(), at, expected); if (a.type.isErroneous()) { if (typeAnnotation) { - return new Attribute.TypeCompound(a.type, List.>nil(), null); + return new Attribute.TypeCompound(a.type, List.>nil(), + new TypeAnnotationPosition()); } else { return new Attribute.Compound(a.type, List.>nil()); }