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

Bug 339174

Summary: Bpmn2OppositeReferenceAdapter creates list with wrong feature ID
Product: [Modeling] MDT.BPMN2 Reporter: Henning Heitkoetter <hheitkoetter>
Component: CoreAssignee: Project Inbox <mdt-bpmn2-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ivar
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch for correctly getting the id hheitkoetter: iplog+

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