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 84807 - Find all subtypes returns only direct subtypes
Summary: Find all subtypes returns only direct subtypes
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks: 87136
  Show dependency tree
 
Reported: 2006-09-13 15:26 UTC by Jiri Prox
Modified: 2007-07-02 11:50 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
AssertionError from javac (2.52 KB, application/octet-stream)
2006-10-17 13:02 UTC, Jan Becicka
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2006-09-13 15:26:52 UTC
NetBeans IDE Dev (Build 060913)
1.6.0-rc; Java HotSpot(TM) Client VM 1.6.0-rc-b98
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

Searching for all subtypes of given class returns only direct subtypes.

Steps to reproduce:
1) create structure
   ClassA extends ClassB
   ClassB extends ClassC
   ClassC
2) goto class ClassC and search for all subtypes
-> only ClassB is found
-> ClassA is missing
Comment 1 Jan Becicka 2006-09-29 11:46:41 UTC
Is it possible to get all subtypes without parsing? Just from index? Tomasi? Thanks
Comment 2 Tomas Zezula 2006-10-02 14:44:40 UTC
No it isn't.
Comment 3 Jan Becicka 2006-10-17 13:01:50 UTC
Checking in api/JavaWhereUsedQuery.java;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/api/Attic/JavaWhereUsedQuery.java,v
 <--  JavaWhereUsedQuery.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in plugins/JavaWhereUsedQueryPlugin.java;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/plugins/Attic/JavaWhereUsedQueryPlugin.java,v
 <--  JavaWhereUsedQueryPlugin.java
new revision: 1.1.2.7; previous revision: 1.1.2.6
done

Find all subtypes still does not work in some cases.
Open "Actions APIs" project and try to find all subtypes of SystemAction. You
will get AssertionError.
Comment 4 Jan Becicka 2006-10-17 13:02:54 UTC
Created attachment 35282 [details]
AssertionError from javac
Comment 5 Jan Lahoda 2006-12-14 14:57:14 UTC
Coupling error.
Comment 6 Jan Lahoda 2007-03-23 12:23:56 UTC
The coupling errors should not break refactoring anymore (if a coupling error
occurs, the given javac instance is thrown away and the given file reparsed
again). For the given coupling error please see issue #90766 and issue #90473. 

I tried to reproduce this issue, but I ran into issue #97397.
Comment 7 Jan Becicka 2007-06-28 17:18:14 UTC
It works in current builds
Comment 8 Jiri Prox 2007-07-02 11:50:50 UTC
verified