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

Bug 338428

Summary: Code generator outputs duplicate delegate methods
Product: z_Archived Reporter: Konstantin Komissarchik <konstantin>
Component: SapphireAssignee: Konstantin Komissarchik <konstantin>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ling.hao
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Konstantin Komissarchik CLA 2011-02-28 11:11:03 EST
1. Create a model element IFoo and define a @DelegateImpl method.
2. Create model elements IFooExt1 and IFooExt2 that extend IFoo.
3. Create a model element IBar that extends both IFooExt1 and IFooExt2.
4. Add @GenerateImpl to IBar.

The generate Bar implementation class will be flagged as having errors by the Java compiler as the delegate method will be present twice. 

The issue is that the code generator is not tracking interfaces already visited when scanning the type tree for delegated methods.
Comment 1 Konstantin Komissarchik CLA 2011-02-28 11:12:50 EST
Fixed.
Comment 2 Ling Hao CLA 2011-06-08 20:16:31 EDT
Verified by creating test case as outlined.