mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6709246: ClassCastException in javadoc
Reviewed-by: jjg
This commit is contained in:
parent
f4883897ce
commit
528f733b28
3 changed files with 89 additions and 1 deletions
|
@ -60,7 +60,12 @@ public class AnnotationDescImpl implements AnnotationDesc {
|
|||
*/
|
||||
public AnnotationTypeDoc annotationType() {
|
||||
ClassSymbol atsym = (ClassSymbol)annotation.type.tsym;
|
||||
return (AnnotationTypeDoc)env.getClassDoc(atsym);
|
||||
if (annotation.type.isErroneous()) {
|
||||
env.warning(null, "javadoc.class_not_found", annotation.type.toString());
|
||||
return new AnnotationTypeDocImpl(env, atsym);
|
||||
} else {
|
||||
return (AnnotationTypeDoc)env.getClassDoc(atsym);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue