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

changeset 2134
b0c086cd4520
parent 2133
19e8eebfbe52
child 2136
7f6481e5fe3a
equal deleted inserted replaced
2133:19e8eebfbe52 2134:b0c086cd4520
248 Type at = (a.annotationType.type != null ? a.annotationType.type 248 Type at = (a.annotationType.type != null ? a.annotationType.type
249 : attr.attribType(a.annotationType, env)); 249 : attr.attribType(a.annotationType, env));
250 a.type = chk.checkType(a.annotationType.pos(), at, expected); 250 a.type = chk.checkType(a.annotationType.pos(), at, expected);
251 if (a.type.isErroneous()) { 251 if (a.type.isErroneous()) {
252 if (typeAnnotation) { 252 if (typeAnnotation) {
253 return new Attribute.TypeCompound(a.type, List.<Pair<MethodSymbol,Attribute>>nil(), null); 253 return new Attribute.TypeCompound(a.type, List.<Pair<MethodSymbol,Attribute>>nil(),
254 new TypeAnnotationPosition());
254 } else { 255 } else {
255 return new Attribute.Compound(a.type, List.<Pair<MethodSymbol,Attribute>>nil()); 256 return new Attribute.Compound(a.type, List.<Pair<MethodSymbol,Attribute>>nil());
256 } 257 }
257 } 258 }
258 if ((a.type.tsym.flags() & Flags.ANNOTATION) == 0) { 259 if ((a.type.tsym.flags() & Flags.ANNOTATION) == 0) {

mercurial