Bug 350738 - "The method is never used locally" is not shown for parameterized recursive methods
Summary: "The method is never used locally" is not shown for parameterized recursive m...
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal with 1 vote (vote)
Target Milestone: 3.8 M4   Edit
Assignee: Srikanth Sankaran CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-29 14:35 EDT by Ivan Sopov CLA
Modified: 2011-12-06 09:00 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.