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

Summary: Another "Find usages" bug
Product: java Reporter: rafo <rafo>
Component: RefactoringAssignee: issues@java <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

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 ***