This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Recent dev build. Sometimes (but not reproducibly) using smart CC (C-S-Space) to complete e.g. Map<String,String> m = new HashMap(); ^ inserts the correct completion (here "<String,String>") but corrupts the import list, mixing together separate import decls, e.g. import java.io.File; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; impo import java.util.HashMap;rt java.util.HashMap; import java.util.HashSet; import java.util.Hashtable; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import java.util.StringTokenizer; import java.util.jar.Attributes; import java.util.jar.JarFile; import org.apache.tools.ant.BuildListener; import org.apache.tools.ant.Project; import org.apache.tools.ant.taskdefs.Property; import org.apache.tools.ant.types.Path; import org.apache import org.netbeans.nbbuild.ModuleListParser.Entry;.tools.ant.util.FileUtils; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.xml.sax.InputSource; (Duplicated imports is filed separately.)
Should be fixed by the #88755 fix. Code completion was rewritten to use the Retouche write API when adding imports. *** This issue has been marked as a duplicate of 88755 ***