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.

Bug 45727 - Find Usages - Find All Subtypes doesn't work for java.lang.Enum
Summary: Find Usages - Find All Subtypes doesn't work for java.lang.Enum
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Pavel Flaska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-30 12:37 UTC by Dusan Balek
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dusan Balek 2004-06-30 12:37:53 UTC
The same is for java.lang.anootation.Annotation.
Comment 1 Martin Matula 2004-07-17 00:13:24 UTC
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)
Comment 2 Pavel Flaska 2004-07-19 16:47:51 UTC
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...
Comment 3 Jiri Prox 2005-07-11 12:22:31 UTC
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.
Comment 4 Pavel Flaska 2005-07-14 16:28:06 UTC
It is regression caused by performance optimization. I work on fix.
Comment 5 Pavel Flaska 2005-07-15 10:26:01 UTC
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
Comment 6 Quality Engineering 2007-09-20 10:40:28 UTC
Reorganization of java component