Bug 350738

Summary: "The method is never used locally" is not shown for parameterized recursive methods
Product: [Eclipse Project] JDT Reporter: Ivan Sopov <moradan228>
Component: CoreAssignee: Srikanth Sankaran <srikanth_sankaran>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: amj87.iitr, Olivier_Thomann
Version: 3.7   
Target Milestone: 3.8 M4   
Hardware: All   
OS: All   
Whiteboard:

Description Ivan Sopov CLA 2011-06-29 14:35:49 EDT
Build Identifier: 20110615-0604

For this code:

private static List<Object> foo1(Set<Object> set) {
	return foo1(set);
}

private static <T> List<T> foo3(Set<T> set) {
	return foo3(set);
}

The first method is marked as unused, while the second is not.

Reproducible: Always
Comment 1 Srikanth Sankaran CLA 2011-11-21 02:16:47 EST
Fix and tests released via commit id d72493837412a83d55cd011d0e0b9648de95961a.
Basically, we are comparing the parameterized generic method with the underlying
method and finding them to be different.
Comment 2 Ayushman Jain CLA 2011-12-06 09:00:27 EST
Verified for 3.8M4 using build I20111202-0800.