Community
Participate
Working Groups
Build Identifier: 20100617-1415 Right click on a method implemented in a class - find references - workspace. The method is specified in an interface, it is overriden in a class that implements that interface. No references are found - they are found only if searched from the interface itself. It is not the case for every interface/class pair. I see no dependency. Happens every time for a given pair. It DID work in Galileo. Reproducible: Always Steps to Reproduce: 1. Make an interface 2. Override a method in a class. 3. Find workspace references from the class.
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 ***