src/share/classes/com/sun/tools/javac/comp/Annotate.java

changeset 2134
b0c086cd4520
parent 2133
19e8eebfbe52
child 2136
7f6481e5fe3a
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Tue Oct 15 22:15:35 2013 +0200
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/Annotate.java	Tue Oct 15 15:57:13 2013 -0700
     1.3 @@ -250,7 +250,8 @@
     1.4          a.type = chk.checkType(a.annotationType.pos(), at, expected);
     1.5          if (a.type.isErroneous()) {
     1.6              if (typeAnnotation) {
     1.7 -                return new Attribute.TypeCompound(a.type, List.<Pair<MethodSymbol,Attribute>>nil(), null);
     1.8 +                return new Attribute.TypeCompound(a.type, List.<Pair<MethodSymbol,Attribute>>nil(),
     1.9 +                        new TypeAnnotationPosition());
    1.10              } else {
    1.11                  return new Attribute.Compound(a.type, List.<Pair<MethodSymbol,Attribute>>nil());
    1.12              }

mercurial