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.
Summary: | Missing API query to search package references | ||
---|---|---|---|
Product: | java | Reporter: | Jan Pokorsky <jpokorsky> |
Component: | Source | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | ||
Priority: | P2 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Bug Depends on: | 203806 | ||
Bug Blocks: | 94325, 131846, 168923 | ||
Attachments: | ClassIndexTest added test |
Description
Jan Pokorsky
2008-04-03 14:57:53 UTC
It's not so easy to distinguish the package name from enclosing class name, may require change of index format. Fixed jet-main 6e6ba0910998 Created attachment 112309 [details]
ClassIndexTest added test
It looks like the newly added API does not fix this issue. I added a test case which seems to fail.
In fact import of package which has no type used is not used, see JLS. (In reply to comment #4) > In fact import of package which has no type used is not used, see JLS. true, but we still need to be able to find these statements. When the last class gets removed from a package, the package no longer exists and these statements become invalid. I found a ugly workaround how to do it. It's so ugly that I will not describe it here ;-). I will try it and let you know. Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/6e6ba0910998 User: Tomas Zezula <tzezula@netbeans.org> Log: #131944:Missing API query to search package references The getResourcesForPkg ans getRefrencesForPkg is now able to find references for unused package import. jet-main 797bd4e21cff Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/797bd4e21cff User: Tomas Zezula <tzezula@netbeans.org> Log: #131944: Missing API query to search package references |