langtools/src/share/classes/com/sun/tools/javac/comp/Annotate.java
changeset 21041 99f5e5e97425
parent 21040 3e32f68d2151
child 21043 3b000be15694
equal deleted inserted replaced
21040:3e32f68d2151 21041:99f5e5e97425
   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) {