This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The same is for java.lang.anootation.Annotation.
Pavle please look at this. The problem is that both enums and annotations have implicit superclass (i.e. Enum and Annotation are not in the identifier index for files containing enums and annotations so the subclasses are not found). I see two ways how to fix this: 1) call refAllOfClass() on JavaEnumClass/AnnotationTypeClass to get all subclasses of java.lang.Enum/java.lang.annotation.Annotation or, 2) automatically add hashcode of "Enum"/"Annotation" identifier to identifier array of every resource containing definition of an enum or annotation (in JavaUpdater and ClassUpdater)
Fixed. Checking in src/org/netbeans/modules/javacore/scanning/JavaUpdater.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/scanning/JavaUpdater.java,v <-- JavaUpdater.java new revision: 1.2; previous revision: 1.1 done Processing log script arguments...
NB 4.2 (200507061800) JDK 1.5.0_04 Find all subtypes of java.lang.anotation.Annotation doesn't work. It finds nothing although the project contains user defined annotations. If it's desired behaviour feel free to close this issus again.
It is regression caused by performance optimization. I work on fix.
Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationTypeImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/AnnotationTypeImpl.java,v <-- AnnotationTypeImpl.java new revision: 1.16; previous revision: 1.15 done Checking in src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/jmiimpl/javamodel/JavaClassImpl.java,v <-- JavaClassImpl.java new revision: 1.59; previous revision: 1.58 done
Reorganization of java component