Bug 152643

Summary: Bodies of Opaque Elements should not be unique
Product: [Modeling] MDT.UML2 Reporter: Adam Neal <adamneal>
Component: CoreAssignee: Kenn Hussey <Kenn.Hussey>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P3    
Version: 2.0.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows XP   
Whiteboard:

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.