Community
Participate
Working Groups
Build Identifier: 20100610-0636 Consider the following declarations: public abstract class Sup<C> { protected void m(C classifier) { } public void use(C owner) { m(owner); } } and public class Sub extends Sup<String> { @Override protected void m(String classifier) { } } Position on Sub.m and show caller hierarchy. Sup.use is not displayed. Position on Sup.m and show caller hierarchy, and Sup.use is displayed. Sub.m is correctly identified as a redefinition of Sup.m. Go to superclass definition works, the green arrow is displayed in front. Ctrl-T (quick hierarchy) on Sup.m correctly shows Sub.m as a redefinition. The problem goes away if Sup.m takes String instead of the type parameter C as argument type for parameter "classifier." Also, show references in workspace (Shift-Ctrl-G) invoked on Sub.m doesn't show any results, probably based on the same bug. I'll attach the example as an exported project for reproduction. Reproducible: Always Steps to Reproduce: 1. Add the above classes to a new empty project 2. Go to Sub.m 3. Invoke either "References in Workspace" or "Caller Hierarchy"
Created attachment 172412 [details] Project flie to reproduce the problem
Unfortunately, the Search Engine has this issue for a long time :-( *** This bug has been marked as a duplicate of bug 123836 ***
Verified for 3.8M6 using build I20120312-1300