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.
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.
Having two correlation sets with the same name violates a semantic validation rule
And also violates Static validation rule 44
Denis, is this oversight in OM? Usualy, OM throws exception that editor traps for such cases, yes?
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 ).
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.
Verified in build from 2006.09.15