Javadoc et problème d'annotations erronées
Bonjour,
Quand j'essaie de générer la Javadoc d'un projet, j'ai des erreurs de type
Citation:
java.lang.ClassCastException: com.sun.tools.javadoc.ClassDocImpl cannot be cast to com.sun.javadoc.AnnotationTypeDoc
Le problème est apparemment connu de Sun : http://bugs.sun.com/bugdatabase/view...bug_id=6442982
Citation:
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.
Mais qu'est-ce qu'une annotation de type erronée ?
Merci ?