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 - imports are duplicated when added more times through the SourceElement.addImports
Summary: imports are duplicated when added more times through the SourceElement.addImp...
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows ME/2000
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-05 13:32 UTC by Vitezslav Stejskal
Modified: 2007-09-26 09:14 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 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.