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 100204 - It's possible to add two packages with the same name
Summary: It's possible to add two packages with the same name
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Yang Su
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2007-04-06 11:20 UTC by Sergey Petrov
Modified: 2007-04-10 11:03 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 Sergey Petrov 2007-04-06 11:20:14 UTC
reproducible with 070405, isn't reproducible in jse8.1

steps:
1. create java platform project
2. add package 'test' to the project
3. invoke add package on 'Model' node
4. type 'test' name
5. click on 'Create Scoped Diagram' checkbox
6(optional). you can deselect checkbox now
7. Finish
second test package appears in project
Comment 1 Yang Su 2007-04-06 23:07:25 UTC
Corrected some validation sequence issues, also made changes to 
1. validate initial default package name
2. disable checkbox when package name is invalid
3. enable diagram name and namespace combo box only when checkbox is selected
Comment 2 Sergey Petrov 2007-04-09 15:11:38 UTC
can't reproduce with initial steps
it still possible with next steps (and not reproducible in 8.1):
1. create java platform project
2. add package 'test' to the project
3. invoke add package on 'test' node
4. type 'test' name
5. change namespace to project level
7. Finish
second test package appears in project
Comment 3 Yang Su 2007-04-09 20:12:29 UTC
add listener to listen to namespace changes and validate package name accordingly.
Comment 4 Andrew Korostelev 2007-04-10 11:03:40 UTC
verified in all-nbms-hydra-070409_14

new related issue 100441 was filed.