Summary: | [1.5][compiler] Local enums are not reported as error | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> |
Component: | Core | Assignee: | Kent Johnson <kent_johnson> |
Status: | VERIFIED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.1 M6 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Olivier Thomann
2005-03-16 14:13:02 EST
When adding enum support, I remember wondering about local enums as well. Once rejected, you should also fix up ClassScope#checkAndSetModifiers() which is handling them. Kent, we should check that enums are always defined in a static context. class X { class Y { enum E {} } } is illegal, but: class X { static class Y { enum E {} } } is legal. Added EnumTest test082 Verified in 20050330-0500 |