Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 345153

Summary: [call hierarchy] Caller not shown when overriding method with generic type parameter in signature
Product: [Eclipse Project] JDT Reporter: Laszlo Kiss <kiss79laszlo>
Component: CoreAssignee: Satyam Kandula <satyam.kandula>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: john.ferg, Olivier_Thomann
Version: 3.7   
Target Milestone: 3.8 M6   
Hardware: PC   
OS: Windows Vista   
Whiteboard:
Attachments:
Description Flags
example code none

Description Laszlo Kiss CLA 2011-05-09 11:00:41 EDT
Build Identifier: 20100917-0705

See attached example code.

Clearly, as the output also shows, B.b(String) is called by A.a(Type), but the caller hierarchy feature fails to pick this up - no callers are shown for B.b(String). I'm assuming that this is due to the fact that the signature of A.b contains the generic type parameter Type, not String, and B.b(String) is thus not identified as overriding A.b(Type).

Reproducible: Always

Steps to Reproduce:
1. Open attached code in Eclipse.
2. View caller hierarchy of method "b" in class "B".
Comment 1 Laszlo Kiss CLA 2011-05-09 11:01:43 EDT
Created attachment 195081 [details]
example code
Comment 2 Satyam Kandula CLA 2011-05-09 23:29:47 EDT

*** This bug has been marked as a duplicate of bug 123836 ***