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 46371 - FindUsages doesn't work on methods with compound string arguments
Summary: FindUsages doesn't work on methods with compound string arguments
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-21 09:40 UTC by ehucka
Modified: 2007-09-26 09:14 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 ehucka 2004-07-21 09:40:34 UTC
I see it only in my test project:

nbcvs:/refactoring/test/qa-functional/data/projects/default

Steps to reproduce:

1. open source file of java.io.PrintStream
2. select method println(String s)
3. invoke FindUsages

Result: it found "System.out.println" in the
project but look into the
org.netbeans.tests.examples.packb.BeanC, there are
two "System.out.println"s which were not found.

Or try to select "System.out.println" usage of the
method in BeanC and in other classes and try to
invoke Find Usages.
Comment 1 Daniel Prusa 2004-07-23 14:25:19 UTC
It occurs for overloaded methods.
If there is a method invocation System.out.println(expr), where expr
is not literal or varible, but complex expression like "a" + "a", the
invocation is always resolved to println(char) method.
Comment 2 Tomas Hurka 2004-07-28 16:11:08 UTC
Fixed in trunk.
/cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v  <--  
MDRParser.java
new revision: 1.33; previous revision: 1.32
done
Comment 3 ehucka 2004-08-17 16:40:12 UTC
verified
Comment 4 Quality Engineering 2007-09-20 10:29:29 UTC
Reorganization of java component