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 84017 - IDE allows to create two correlation sets with same name
Summary: IDE allows to create two correlation sets with same name
Status: VERIFIED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Nikita Krjukov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-01 13:10 UTC by Mikhail Kondratyev
Modified: 2006-09-17 13:10 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 Mikhail Kondratyev 2006-09-01 13:10:43 UTC
IDE currently allows to create two correlation sets with same name. This is
inconsistent with variables behavior: user can't create two variables with same
name.
Comment 1 Mikhail Kondratyev 2006-09-01 14:26:24 UTC
Having two correlation sets with the same name violates a semantic validation rule 
Comment 2 Mikhail Kondratyev 2006-09-01 14:50:12 UTC
And also violates Static validation rule 44
Comment 3 Michael Frisino 2006-09-04 22:35:05 UTC
Denis, is this oversight in OM? Usualy, OM throws exception that editor traps
for such cases, yes?
Comment 4 Denis Anisimov 2006-09-05 08:34:23 UTC
This is not OM issue.
I cannot throw exception while ADDING new preconfigured element.
( I mean that method signature doesn't allow this ).
I CAN throw exception ONLY when one try to set already existing name to element
that IS in OM.
New correlation set is created unattached to OM and its name is not checked.

This issue should be resolved on UI side.

From my side I can write code for situation that I've described above ( if it
isn't already written ).
Comment 5 Nikita Krjukov 2006-09-06 17:46:35 UTC
The duplication prevention is implemented the same way as for variables. 
When the new correlation set is created then the check is doing by the dialog.
When the correlation set is modified then the check is doing by the model. 

Honestly the dialog can do check in both cases. 
Comment 6 Mikhail Kondratyev 2006-09-17 13:10:03 UTC
Verified in build from 2006.09.15