src/share/classes/com/sun/tools/javadoc/AnnotationDescImpl.java

changeset 406
071a4e36cd87
parent 1
9a66ca7c79fa
child 554
9d9f26857129
equal deleted inserted replaced
405:ebb6ad5a95bb 406:071a4e36cd87
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

mercurial