Bug 74320 - [1.5] Unused private member diagnosis fooled by generics
Summary: [1.5] Unused private member diagnosis fooled by generics
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-20 12:17 EDT by Philipe Mulet CLA
Modified: 2004-09-24 06:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2004-09-20 12:17:53 EDT
Build 20040914

Following code should not report #rev to be unused:

import java.util.List;

public class X {
	public static void reverse(List<?> list) { 
		rev(list);
	}
	private static <T> void rev(List<T> list) {
	}
}
Comment 1 Philipe Mulet CLA 2004-09-20 12:18:42 EDT
Tagging of usage should always refer to original.
Fixed, added regression test: GenericTypeTest#test301
Comment 2 Frederic Fusier CLA 2004-09-24 06:20:46 EDT
Verified for 3.1 M2 with build I200409231635.