Bug 86451 - [astrewrite] Syntax errors when copying bodydeclarations inside enum
Summary: [astrewrite] Syntax errors when copying bodydeclarations inside enum
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Tobias Widmer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-24 06:01 EST by Tobias Widmer CLA
Modified: 2005-03-31 11:00 EST (History)
0 users

See Also:


Attachments

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