Bug 55505 - Search for references to a toString method doesn't return implicit references
Summary: Search for references to a toString method doesn't return implicit references
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M8   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-22 07:14 EST by Eric Jain CLA
Modified: 2004-03-26 09:45 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Jain CLA 2004-03-22 07:14:51 EST
public class TestFindToString
{	
  public String toString()
  {
    return super.toString();
  }
  
  public static void main(String[] args)
  {
    TestFindToString t = new TestFindToString();
    System.out.println("? " + t.toString());
    System.out.println("? " + t);
  }
}
Comment 1 Jerome Lanneluc CLA 2004-03-25 04:02:29 EST
Not enough details in this bug report to do anything. Please reopen and provide 
the build number and steps to reproduce.
Comment 2 Eric Jain CLA 2004-03-25 04:27:41 EST
Steps to reproduce:

1. Create class as shown above.
2. Select toString method declaration.
3. Choose Search -> References -> Project

Only the first println statement is marked, even though the toString method is 
also called (implicitly) from within the second println statement.

I am running Eclipse 3.0.0 build 200402122000.
Comment 3 Philipe Mulet CLA 2004-03-26 09:45:10 EST
FYI, 2nd invocation targets #println(Object) which in turn performs a #toString.
So there is no reference in your type.

Moreover, we do not report references to internally generated code.