Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356539 - Code generation problem for certain inner classes
Summary: Code generation problem for certain inner classes
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Sapphire (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Konstantin Komissarchik CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-01 22:28 EDT by Konstantin Komissarchik CLA
Modified: 2021-11-19 09:22 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.