-
Bug
-
Resolution: Duplicate
-
P5
-
None
-
1.1
-
sparc
-
solaris_2.5
Files like this should not compile, but they do:
// this is JCK 1.1 test innr017b
class HiddenFieldBug {
class Inner {
Object x = this$HiddenFieldBug;
// A similar problem exists with other synthesized names,
// such as val$foo, access$2(), HiddenFieldBug$1$Local.
}
}
// this is JCK 1.1 test innr017b
class HiddenFieldBug {
class Inner {
Object x = this$HiddenFieldBug;
// A similar problem exists with other synthesized names,
// such as val$foo, access$2(), HiddenFieldBug$1$Local.
}
}
- duplicates
-
JDK-4094180 # Synthetic names can conflict with explicit declaration
- Closed
- relates to
-
JDK-4302890 declared/synthetic class name conflict undetected
- Resolved
-
JDK-4452115 javac allows access to a local class by using a synthetic name
- Closed