-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.6
Name: tb29552 Date: 06/10/98
public class C { // slight variation of Bug Id 4056774
C() {
o = null;
}
class R {
void printo() {
System.out.println(o);
}
}
private final Object o;
}
Compiling the above produces the error message:
C.java:10: Blank final variable 'o' may not have
been initialized. It must be assigned a value in
an initializer, or in every constructor.
(Review ID: 33093)
======================================================================
- duplicates
-
JDK-4147610 Spurious unitialized blank final errors when variable accessed in inner class
- Closed
- relates to
-
JDK-4306909 Bogus definite assignment error followed by crash inside inner class
- Closed
-
JDK-4056774 Blank final initialize bug in the 1.1.x compiler
- Closed