Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 320318 - Incorrect use of EMF bidirectional references in UML metamodel
Summary: Incorrect use of EMF bidirectional references in UML metamodel
Status: CLOSED FIXED
Alias: None
Product: MDT.UML2
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 major (vote)
Target Milestone: SR1   Edit
Assignee: UML2 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2010-07-19 16:01 EDT by Volker Stolz CLA
Modified: 2011-05-31 10:36 EDT (History)
2 users (show)

See Also:
Kenn.Hussey: indigo+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Volker Stolz CLA 2010-07-19 16:01:40 EDT
Build Identifier: 20100617-1415

(Summarizing thread from <vs-25A30F.14514313072010@news.eclipse.org>)

With Eclipse Helios, UML Validation, e.g. in the example UML Editor, fails for certain model fragments with e.g. "The opposite features 'owner' of '<Trigger> s' and 'ownedElement' of 
'<Transition> k' do not refer to each other" or similar. Apart from owner/ownedElement, it at least also fails for namespace/ownedMember, e.g. for an InterfaceRealization in a Component.



Reproducible: Always

Steps to Reproduce:
1. Use the UML Editor to create a new UML model (or do so programmatically):
   + Model
     + Component
       + Interface Realization
2. Run UML Editor -> Validate
3. Observe validation error regarding opposite features namespace/ownedMember.
Comment 1 Kenn Hussey CLA 2010-08-19 14:55:28 EDT
As discussed in the newsgroup, we assume (and have for years) the implicit container of an element is its owner, and the implicit container of a named element is also its namespace (if it's a kind of Namespace). In order to satisfy this new constraint, we'd either need to stop making this assumption and add a bunch of new subsets constraints to the metamodel to make it explicit, or else (perhaps more realistically) bypass the constraint for UML models.

The "fix" (latter option above) has been committed to both the HEAD and R3_1_maintenance streams.
Comment 3 Volker Stolz CLA 2010-09-25 06:01:45 EDT
Hi Kenn, I'm looking at Helios SR1 with UML2 3.1.1, and I'm still seeing:

The opposite features 'feature' of 'org.eclipse.uml2.uml.internal.impl.InterfaceImpl@3aff8399{platform:/resource/examples/CoCoME/cocome/CoCoME.uml#_MAPtEItuEd29vaKB72n5RA}' and 'featuringClassifier' of 'org.eclipse.uml2.uml.internal.impl.OperationImpl@7852fda6{platform:/resource/examples/CoCoME/cocome/CoCoME.uml#_MAPtGotuEd29vaKB72n5RA}' do not refer to each other

Maybe there are other instances of this bug left? (And apologies for not being in a position to have tested the RCs.)

Cheers,
   Volker
Comment 4 Kenn Hussey CLA 2010-09-27 10:15:24 EDT
(In reply to comment #3)
> Maybe there are other instances of this bug left? (And apologies for not being
> in a position to have tested the RCs.)

Yes, it appears that other occurrences of the problem still exist. :(

Perhaps you could open a new issue for which we could provide a more comprehensive solution in UML2 3.2?
Comment 5 Kenn Hussey CLA 2011-05-31 10:36:44 EDT
Closing for Indigo release.