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

Bug 346183

Summary: Compile errors with redefined operations and minimal reflective methods
Product: [Modeling] MDT.UML2 Reporter: Kenn Hussey <Kenn.Hussey>
Component: CoreAssignee: Kenn Hussey <Kenn.Hussey>
Status: CLOSED FIXED QA Contact:
Severity: major    
Priority: P3 Flags: Kenn.Hussey: indigo+
Kenn.Hussey: pmc_approved+
Version: 3.2.0   
Target Milestone: RC2   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Kenn Hussey CLA 2011-05-17 22:56:40 EDT
When the UML2 code generator is used to generate code for a (UML) model containing redefined operations with the "minimal reflective methods" option turned on, compilation errors occur in eInvoke(...) implementations. The reason is that "duplicate" operations are considered different from the operations they redefine and so the "unique name" that is assigned to them is different from the original (it is mangled).

The fix here is to use the UML2 code generator to use the same unique name for duplicate operations as for the redefined operations, so that the generated references to operation metadata are correct.
Comment 1 Kenn Hussey CLA 2011-05-17 23:00:34 EDT
The fix has been committed to CVS.
Comment 2 Kenn Hussey CLA 2011-05-23 14:22:16 EDT
Fix available in RC2 build.
Comment 3 Kenn Hussey CLA 2011-05-31 10:34:50 EDT
Closing for Indigo release.