Community
Participate
Working Groups
I have a class that compiles with this import: import java.util.Map.Entry; If I do an organize import on the class or the project, this import is removed and the project no longer compiles. There is no warning about unused classes though (correct). I am using eclipse 3.2 M5.
Moving to JDT UI
*** Bug 131306 has been marked as a duplicate of this bug. ***
A test case that reproduces the problem: import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import java.util.Set; public class Test extends HashMap<String, String> { public Test(Map<String,Object> m) { Set<Entry<String, Object>> entries = m.entrySet(); for (Entry<String, Object> entry : entries) { if(entry.getValue() != null) { put(entry.getKey(), entry.getValue().toString()); } } } }
*** Bug 131809 has been marked as a duplicate of this bug. ***
fixed > 20060424