Summary: | IllegalArgumentException when converting AST with invalid enum body declaration | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Markus Keller <markus.kell.r> |
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M6 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Markus Keller
2005-03-08 04:12:59 EST
I am investigating. The problem is in the recovery. The anonymous type for PINK is not closed. Fixed. If the declarationSourceEnd of the last enum constant body is 0 then this declarationSourceEnd must be set to the value of the declarationSourceEnd of the enum constant. Regression test added in ASTConverter15Test.test0145. Reopen. If the test case is: package xy; public enum Color { RED, GREEN(), BLUE(17), PINK(1) {/*anon*}; Color() {} Color(int i) {} It doesn't work. I am investigating. Fixed and released in HEAD. New test case added in ASTConverter15Test.test0148. Verified in 20050330-0500 |