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 9965

Summary: imports are duplicated when added more times through the SourceElement.addImports
Product: java Reporter: Vitezslav Stejskal <vstejskal>
Component: UnsupportedAssignee: issues@java <issues>
Status: CLOSED FIXED    
Severity: blocker    
Priority: P3    
Version: 3.x   
Hardware: PC   
OS: Windows ME/2000   
Issue Type: DEFECT Exception Reporter:

Description Vitezslav Stejskal 2001-03-05 13:32:04 UTC
When updating existing SourceElement, imports added by addImport(s) functions
are written to the java source code, even if they already exist there.
Comment 1 Jan Chalupa 2001-03-12 10:46:31 UTC
Version: 'Dev' -> 3.2
Comment 2 Svata Dedic 2001-03-21 15:26:29 UTC
Fixed, the collection is now considered to be a set; if an import is already 
present in the collection it is not added.

Fixed in dev trunk & rel. 3.2
Comment 3 Jan Becicka 2001-04-04 16:43:10 UTC
[release32-20] Verified
Comment 4 Jan Chalupa 2001-05-05 23:24:39 UTC
Target milestone -> 3.2
Comment 5 Jan Lahoda 2001-10-15 10:28:51 UTC
*** Issue 14608 has been marked as a duplicate of this issue. ***
Comment 6 Quality Engineering 2003-07-01 13:14:39 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.