| Summary: | [content assist] Imports added twice when creating anonymous type | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
| Component: | Text | Assignee: | JDT-Text-Inbox <jdt-text-inbox> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | daniel_megert |
| Version: | 3.5 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | stalebug | ||
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. |
I20101026-2000 Imports are sometimes added twice when creating anonymous type via content assist. Steps: - have this class: package xy; import java.beans.PropertyChangeSupport; public class ImportsBug { PropertyChangeSupport fProperty= new PropertyChangeSupport(this); void foo() { fProperty.addPropertyChangeListener(new P); } } - restore the Organize Imports properties for the project to defaults, then enable project-specific settings and remove all 4 entries in the table - use Content Assist after "new P" to add the anonymous PropertyChangeListener => imports are (note the duplications): import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeEvent; import java.beans.PropertyChangeListener; import java.beans.PropertyChangeSupport;