Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 339174 - Bpmn2OppositeReferenceAdapter creates list with wrong feature ID
Summary: Bpmn2OppositeReferenceAdapter creates list with wrong feature ID
Status: RESOLVED FIXED
Alias: None
Product: MDT.BPMN2
Classification: Modeling
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-08 03:42 EST by Henning Heitkoetter CLA
Modified: 2011-03-08 04:19 EST (History)
1 user (show)

See Also:


Attachments
Patch for correctly getting the id (1.64 KB, patch)
2011-03-08 03:54 EST, Ivar Meikas CLA
hheitkoetter: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Heitkoetter CLA 2011-03-08 03:42:53 EST
In getOppositeList, the result list is created with the feature ID of the structural feature relative to its containing class. 
Instead, the feature ID has to be relative to the owner's class, which can be different in case of inheritance (e.g.: incomingConversationLinks in InteractionNode vs. ConversationNode).
Comment 1 Ivar Meikas CLA 2011-03-08 03:54:28 EST
Created attachment 190630 [details]
Patch for correctly getting the id
Comment 2 Ivar Meikas CLA 2011-03-08 04:06:13 EST
I wrote the code myself and I have all permissions from my employer (Codehoop OY) to submit code to Eclipse projects.
Comment 3 Henning Heitkoetter CLA 2011-03-08 04:18:09 EST
Comment on attachment 190630 [details]
Patch for correctly getting the id

Thanks a lot!
Comment 4 Henning Heitkoetter CLA 2011-03-08 04:19:22 EST
Committed in b8db7495d38a2dbacebd5a6868216679b983d27e