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 118102 - [60cat] Find Usages does not find overridden method
Summary: [60cat] Find Usages does not find overridden method
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P2 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-08 14:28 UTC by tboerkel
Modified: 2007-10-09 09:17 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Class1 (320 bytes, text/plain)
2007-10-08 14:29 UTC, tboerkel
Details
Class2 (430 bytes, text/plain)
2007-10-08 14:30 UTC, tboerkel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tboerkel 2007-10-08 14:28:32 UTC
[ BUILD # : 200710071200 ]
[ JDK VERSION : 1.6.0_03 ]

Find Usages (in the default configuration) does not find the caller
of a method, if the method is overridden.

If I switch off "Search from Base Class", then it works. But it
should work by default, as in NB 5.x.

Attaching example Class1.java and Class2.java. Execute Find Usages on
Class1.addPropertyChangeListener().
Comment 1 tboerkel 2007-10-08 14:29:58 UTC
Created attachment 50390 [details]
Class1
Comment 2 tboerkel 2007-10-08 14:30:29 UTC
Created attachment 50391 [details]
Class2
Comment 3 Milos Kleint 2007-10-08 14:36:21 UTC
-> refactoring
Comment 4 Jan Becicka 2007-10-08 16:03:35 UTC
I think I have a fix. It need more testing. I will commit the fix tomorrow.
Comment 5 Jan Becicka 2007-10-09 09:17:49 UTC
Good catch.
Checking in RetoucheUtils.java;
/cvs/refactoring/java/src/org/netbeans/modules/refactoring/java/RetoucheUtils.java,v  <--  RetoucheUtils.java
new revision: 1.32; previous revision: 1.31
done