Details
-
Enhancement
-
Resolution: Rejected
-
P4
-
None
-
6
-
generic
-
generic
Description
The following program compiles:
class Test {
static Object x = Test.x;
}
This is rejected by javac:
class Test {
static Object x = x;
}
Since Test.x and x represent the same variable should the compiler
reject both programs?
class Test {
static Object x = Test.x;
}
This is rejected by javac:
class Test {
static Object x = x;
}
Since Test.x and x represent the same variable should the compiler
reject both programs?
Attachments
Issue Links
- relates to
-
JDK-6424491 Cannot initialise nested enums
-
- Closed
-