Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336105

Summary: Can create illegal association on instance diagrams
Product: [Technology] Tigerstripe Reporter: Richard Craddock <rcraddoc>
Component: DiagramsAssignee: Project Inbox <tigerstripe.diagram-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nmehrega, yuri
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
336105 patch none

Description Richard Craddock CLA 2011-02-02 12:19:15 EST
I have a simple model:
EntityOne
EntityTwo
AssociationOne that has EntityOne at the AEnd and EntityTwo at the ZEnd, AND multiplicity of ONE at both ends  (the default).


Create an insance diagram and drag on ONE instance of entityOne, and TWO instance of EntityTwo.


I can then, create (by use of the handles on the diagram):
an instance of an association between one of the EntityTwo instances and teh EntityOne instance.

I can do this startin from EITHER of the two entity insances.

The above is all good.

What is bad is that if I now grab the handle from the EntityTwo (Zend) and drag it onto EntityOne instance, a new assoc is created - this is illegal..

If I grab the handle on the EntityOne instance (AEnd) then The assoc does not get created.

It seems there is some kind of check missing depending on which end of an assoc is used to create the instance.
Comment 1 Richard Craddock CLA 2011-02-02 13:09:11 EST
Note that is the creation of the SECOND association that has this problem.

This should not be allowed bacsue the multiplicity is ONE.
Comment 2 Anton Salnik CLA 2011-02-03 07:43:53 EST
Created attachment 188223 [details]
336105 patch
Comment 3 Yuri Strot CLA 2011-02-10 05:33:43 EST
Anton's patch applied.
Comment 4 Navid Mehregani CLA 2011-02-11 13:29:09 EST
I've verified the fix for this, but Richard you might want to give it a try as well.