This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 336105 - Can create illegal association on instance diagrams
Summary: Can create illegal association on instance diagrams
Status: RESOLVED FIXED
Alias: None
Product: Tigerstripe (Archived)
Classification: Technology
Component: Diagrams (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.5M0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-02 12:19 EST by Richard Craddock CLA
Modified: 2011-02-11 13:29 EST (History)
2 users (show)

See Also:


Attachments
336105 patch (2.96 KB, patch)
2011-02-03 07:43 EST, Anton Salnik CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.