Community
Participate
Working Groups
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); } }
Not enough details in this bug report to do anything. Please reopen and provide the build number and steps to reproduce.
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.
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.