-
Bug
-
Resolution: Not an Issue
-
P3
-
None
-
5.0u12
-
x86
-
windows_xp
a compiler error "enum types must be local", check a similar discussion going on at
http://forum.java.sun.com/thread.jspa?forumID=54&threadID=595962
It seems that prior to Java 1.5.0_01 method-scoped enums were allowed:
static void main(String[] args)
{
enum Colors { RED, GREEN, BLUE };
}
but once in 1.5.0_01 you get the aforementioned compiler error. sounds like
a regression in bug #5081785?
http://forum.java.sun.com/thread.jspa?forumID=54&threadID=595962
It seems that prior to Java 1.5.0_01 method-scoped enums were allowed:
static void main(String[] args)
{
enum Colors { RED, GREEN, BLUE };
}
but once in 1.5.0_01 you get the aforementioned compiler error. sounds like
a regression in bug #5081785?
- relates to
-
JDK-5081785 (enum) Empty enum declartion allowed in non-static context
- Resolved