Community
Participate
Working Groups
When searching for refs to method toString() in class X, search also finds refrences to toString() methods on other classes (e.g. java.io.File). This seems to only happen with methods that exist in java.lang.Object (?) Is this expected behavior? Seen on 3.1M4
If time permit
What build did you use? How exactly did you perform your search ? I cannot reproduce with following test case (with JDT/Core HEAD or M6 content): public class X { public String toString() { return "X"; } void foo() { new X().toString(); } } and searching for toString() references. I find only one reference when I use search from popup-menu (same result with workspace or project scope). Using string pattern (ie. with Search dialog), I get one match when I search on project scope and get multiple ones when I search on entire workspace scope (which is normal behavior). Please reopen with exact test case if you still can get it or close if not... PS: There's no reference to toString() method in java.io.File, so I guess you meant that you also found references to java.io.File.toString() methods, correct?
Reopen to set as duplicate
Assume this a similar case than bug 105768 *** This bug has been marked as a duplicate of 105768 ***
Reopen to change duplicate
*** This bug has been marked as a duplicate of 73401 ***