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.

Bug 88756 - Smart CC can corrupt import list
Summary: Smart CC can corrupt import list
Status: RESOLVED DUPLICATE of bug 88755
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Lahoda
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2006-11-07 00:20 UTC by Jesse Glick
Modified: 2007-01-17 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2006-11-07 00:20:36 UTC
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.)
Comment 1 Dusan Balek 2006-11-07 09:22:42 UTC
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 ***