Bug 86451

Summary: [astrewrite] Syntax errors when copying bodydeclarations inside enum
Product: [Eclipse Project] JDT Reporter: Tobias Widmer <tobias_widmer>
Component: CoreAssignee: Tobias Widmer <tobias_widmer>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: All   
Whiteboard:

Description Tobias Widmer CLA 2005-02-24 06:01:53 EST
I20050222-0821 + JDT UI Head

Steps to reproduce:
- Create compilation unit with enums:

public enum RGB_COLOR {
 RED, GREEN, BLUE
}

public enum HSV_COLOR {

}

- Drag&Drop one of the enum constants to the other enum, or rearrange them
-> Syntax errors occur
Comment 1 Dirk Baeumer CLA 2005-03-11 05:36:51 EST
Martin, Tobias if rely on that this gets fixed. 

Tobias, can the fix still happen in M7 ?
Comment 2 Tobias Widmer CLA 2005-03-11 05:40:55 EST
Sure. There is currently no refactoring which inserts or rearranges enum 
constants. Only reorg is affected
Comment 3 Martin Aeschlimann CLA 2005-03-14 06:07:15 EST
fixed a bug in the ast rewriter when adding the first body declaration to an enum
> 20050314

But drag and drop has the bug to copy the enum constants to the body
declarations. Should copy it to the enum constants
Comment 4 Tobias Widmer CLA 2005-03-16 06:51:33 EST
Fixed > 20050316
Comment 5 David Audel CLA 2005-03-31 11:00:03 EST
Verified in I20050330-0500