Community
Participate
Working Groups
In the following example, with I20040824, the private method #compare is marked as "unused" (I have "unused private fields and methods" set to "warning" in the compiler preferences): package test; import java.util.ArrayList; import java.util.List; public class GenericsMethodsTest { public void a() { List<String> list1 = new ArrayList<String>(); List<String> list2 = new ArrayList<String>(); compare(list1, list2); } public void b() { List<Integer> list1 = new ArrayList<Integer>(); List<Integer> list2 = new ArrayList<Integer>(); compare(list1, list2); } private <E> void compare(List<E> list1, List<E> list2) { // do some comparing logic... } }
Does no longer happen in build I200410260800. I'll add this bug to JDT/Core buildnotes.
Added regression test: GenericTypeTest#test362
Verified for 3.1 M3 with build I200411040800