In the example below, placing the cursor at collection.ad| and hitting Ctrl-Space proposes add(Object) or add(Collection). It should propose add(String) or add (Collection<? extends String>). In fact, it works if the line below is removed (dummy = 0);
package tests;
import java.util.Collection;
public class ErasureTest {
private Collection<String> collection;
privateint dummy;
public void test () {
collection.ad|
dummy = 0;
}
}
Description
In the example below, placing the cursor at collection.ad| and hitting Ctrl-Space proposes add(Object) or add(Collection). It should propose add(String) or add (Collection<? extends String>). In fact, it works if the line below is removed (dummy = 0);
package tests;
import java.util.Collection;
public class ErasureTest {
private Collection<String> collection;
privateint dummy;
public void test () {
collection.ad|
dummy = 0;
}
}