Bug 87818 - [compiler] local enums are illegal, but does this need to be a syntax error?
Summary: [compiler] local enums are illegal, but does this need to be a syntax error?
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.1 M6   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 80066 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-03-11 15:53 EST by Olivier Thomann CLA
Modified: 2005-03-30 23:26 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 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