equal
deleted
inserted
replaced
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) { |