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 107615 - [Find Usages] Usages in top level non public classes not found
Summary: [Find Usages] Usages in top level non public classes not found
Status: VERIFIED DUPLICATE of bug 90196
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-21 12:49 UTC by Jiri Prox
Modified: 2008-02-15 10:56 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 Jiri Prox 2007-06-21 12:49:10 UTC
Product Version: NetBeans IDE Dev (Build 070621) Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 System: Linux
version 2.6.5-1.358 running on i386; UTF-8; en_US (nb) Userdir: /space/u9

Usages in top-level non-public classes not found. 

Steps to reproduce:
1) have class 
public class Bean {
    int refID;      
}

2) in second file there are two classes (it's important that there is no usage of refID in BeanA):
public class BeanA {

}

class BeanC {
    public void method(int a, Bean s) {
        s.refID = 3;
    }
}

3) now search for usages of refID

-> nothing is found
Comment 1 Jan Becicka 2007-06-22 09:31:28 UTC
Seems to be bug in classindex.
idx.getResources('Bean', 'TYPE_REFERENCES and IMPLEMENTORS), 'SOURCE')
return empty set, although there is a reference is BeanA.java
Comment 2 Tomas Zezula 2007-06-22 12:16:36 UTC
Caused by same reason as #90196, non public top levels doesn't work

*** This issue has been marked as a duplicate of 90196 ***
Comment 3 Jiri Prox 2008-02-15 10:56:31 UTC
v.