| Summary: | [search] References of an interface method not found when searching from implementing class | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | maciej <the4yeast> | ||||
| Component: | Core | Assignee: | Satyam Kandula <satyam.kandula> | ||||
| Status: | VERIFIED DUPLICATE | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | chris, jarthana, markus.kell.r, Olivier_Thomann, remy.suen | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 3.6.1 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
maciej
What is this, Java? C++? Something else? (In reply to comment #1) > What is this, Java? C++? Something else? Java Java tooling bugs go to JDT. Works for me. Make sure you didn't enable the "References to Overridden" filter in the Search view (see view Menu, Ctrl+F10).
package p;
public interface Interface {
void foo();
}
package p;
public class Clazz implements Interface {
@Override
public void foo() {
System.out.println("Hi");
}
}
package p;
public class CRef {
public static void main(String[] args) {
Clazz c= new Clazz();
c.foo();
}
}
package p;
public class IRef {
public static void main(String[] args) {
Interface i= new Clazz();
i.foo();
}
}
I didn't enable that setting. As I said, 'It is not the case for every interface/class pair'. I don't know why it works for some and does not for others. I used Galileo and Ganymede for the same projects - always worked there. Then please provide an example that does not work. To reproduce the issue move IRef into a second project which depends on the first project. Make sure that the second project does not refer to Clazz. It's appears that Helios assumes that if project2 does not directly use Clazz, then it cannot refer to Clazz.foo(), which isn't true. Created attachment 174655 [details]
projects to reproduce
To reproduce, import the attached projects and then search for references to Clazz#foo().
(In reply to comment #7) > Make sure that the second project does not refer to Clazz. Thanks, that's it. Moving to Core since the bug is in the search engine. This is a duplicate of bug 313668. Please try turning off Build Automatically or try the new builds of 3.6.1 *** This bug has been marked as a duplicate of bug 31368 *** Verified for 3.6.1 RC2 using build M20100825-0800. *** This bug has been marked as a duplicate of bug 313668 *** |