Bonjour,
Quand j'essaie de générer la Javadoc d'un projet, j'ai des erreurs de typeLe problème est apparemment connu de Sun : http://bugs.sun.com/bugdatabase/view...bug_id=6442982java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
Mais qu'est-ce qu'une annotation de type erronée ?There seems to be a bug in 1.5 javadoc that comes up when trying to get annotations of types that are not correctly imported in the source file.
When an annotation's type is erroneous, DocEnv.getClassDoc may return a ClassDocImpl to AnnotationDescImpl.annotationType. Perhaps it should return an AnnotationTypeDocImpl instead. Or else AnnotationDescImpl.annotationType must be smarter about checking for
error conditions.
Merci ?
Partager