Bug 87818

Summary: [compiler] local enums are illegal, but does this need to be a syntax error?
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: jeem
Version: 3.1   
Target Milestone: 3.1 M6   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2005-03-11 15:53:29 EST
Having a local enum type is illegal. We support this, but we fail with a syntax
error.
Syntax error on token "enum", interface expected

We suggest interface to be a replacement, but in fact local interfaces are also
illegal. So I would suggest to treat local enums like local interfaces. This
would make it more consistent.
Comment 1 Olivier Thomann CLA 2005-03-11 16:07:08 EST
Same treatment should be done for local annotation types.
Comment 2 Olivier Thomann CLA 2005-03-16 22:42:25 EST
Fixed and released in HEAD.
Regression test added in EnumTest.test81
Comment 3 Olivier Thomann CLA 2005-03-17 09:53:28 EST
*** Bug 80066 has been marked as a duplicate of this bug. ***
Comment 4 Olivier Thomann CLA 2005-03-30 23:26:48 EST
Verified in 20050330-0500