Bug 152643 - Bodies of Opaque Elements should not be unique
Summary: Bodies of Opaque Elements should not be unique
Status: CLOSED FIXED
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: 2.0.0   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: 2.0.1   Edit
Assignee: Kenn Hussey CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-02 15:07 EDT by Adam Neal CLA
Modified: 2006-09-06 15:42 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Neal CLA 2006-08-02 15:07:22 EDT
OpaqueBehavior, OpaqueAction and OpaqueExpression all have 2 ordered lists Bodies and Languages.

It makes sense that the list of Languages should be unique, however the list of bodies should not.

In the case of using these Opaque Elements for storing code snippets in different langauges, the fact that the bodies list is unique disallows one to insert the same code snippet (say a comment) in two different languages, even though the body may be semantically correct for both languages.

This issue has been raised to OMG against the UML2 specification already and is waiting to be processed.
Comment 1 Kenn Hussey CLA 2006-08-21 10:31:09 EDT
The fix has been committed to CVS.
Comment 2 Kenn Hussey CLA 2006-08-24 15:39:08 EDT
Fixed in M200608241455.
Comment 3 Adam Neal CLA 2006-09-06 15:42:47 EDT
Verified in M200608241455.

OpaqueAction, OpaqueBehavior and OpaqueExpression body lists will allow entries to be identical.