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 139042 - Another "Find usages" bug
Summary: Another "Find usages" bug
Status: RESOLVED DUPLICATE of bug 120145
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-04 14:47 UTC by rafo
Modified: 2008-07-29 13:33 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 rafo 2008-07-04 14:47:40 UTC
It is a different bug in "Find usages" mechanism.

I have declared a data model class.

Into this class there is toString() method declared.

This method is indirectly invoked in System.out.println() calls in other classes, when I call 

System.out.println(dataModelClassInstalce);

I tried to find usages of "toString()" -- and dialog box hangs when I press OK (find).

I think there is a bug inside of the mechanism that does not take in account indirect calls like toString() call.
Comment 1 Petr Dvorak 2008-07-11 15:14:15 UTC
Reassigning to "refactoring" module for evaluation.
Comment 2 Jiri Prox 2008-07-11 17:03:18 UTC
Reproducible, the IDE does not hang but the computation is taking too much time (maybe it's in endless look). 

Note there is no indirect call - the method toString() is normally called in String.valueOf(Object obj) when object is
passed to System,.out.println() method.
Comment 3 Jan Pokorsky 2008-07-29 13:33:57 UTC
It is not hanged, it just take too long.

*** This issue has been marked as a duplicate of 120145 ***