langtools/src/share/classes/com/sun/tools/javadoc/AnnotationDescImpl.java
changeset 3892 7f888c00fad7
parent 10 06bc494ca11e
child 5520 86e4b9a9da40
equal deleted inserted replaced
3891:69ac41cb327b 3892:7f888c00fad7
    58     /**
    58     /**
    59      * Returns the annotation type of this annotation.
    59      * Returns the annotation type of this annotation.
    60      */
    60      */
    61     public AnnotationTypeDoc annotationType() {
    61     public AnnotationTypeDoc annotationType() {
    62         ClassSymbol atsym = (ClassSymbol)annotation.type.tsym;
    62         ClassSymbol atsym = (ClassSymbol)annotation.type.tsym;
    63         return (AnnotationTypeDoc)env.getClassDoc(atsym);
    63         if (annotation.type.isErroneous()) {
       
    64             env.warning(null, "javadoc.class_not_found", annotation.type.toString());
       
    65             return new AnnotationTypeDocImpl(env, atsym);
       
    66         } else {
       
    67             return (AnnotationTypeDoc)env.getClassDoc(atsym);
       
    68         }
    64     }
    69     }
    65 
    70 
    66     /**
    71     /**
    67      * Returns this annotation's elements and their values.
    72      * Returns this annotation's elements and their values.
    68      * Only those explicitly present in the annotation are
    73      * Only those explicitly present in the annotation are