Bug 74320

Summary: [1.5] Unused private member diagnosis fooled by generics
Product: [Eclipse Project] JDT Reporter: Philipe Mulet <philippe_mulet>
Component: CoreAssignee: Philipe Mulet <philippe_mulet>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.0   
Target Milestone: 3.1 M2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.