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

Bug 356539

Summary: Code generation problem for certain inner classes
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-09-01 22:28:03 EDT
Given model elements defined as follows:

@GenerateImpl
public interface Level1 extends IModelElement
{
    ModelElementType TYPE = new ModelElementType( Level1.class );

    @GenerateImpl
    public interface Level2 extends Level1
    {
        ModelElementType TYPE = new ModelElementType( Level2.class );
    }
}

Sapphire annotation processor generates Level1$Level2Impl.java with compilation errors due to a missing import.
Comment 1 Konstantin Komissarchik CLA 2011-09-01 22:35:25 EDT
This is a regression due to fix for Bug 353533.
Comment 2 Konstantin Komissarchik CLA 2011-09-02 14:10:08 EDT
Fixed by reverting the fix for Bug 353533.
Comment 3 Ling Hao CLA 2011-09-28 18:31:38 EDT
Verify with the sample code that the generated code compiles and does not miss any import.