test/tools/javac/InnerNamedConstant_2.out

Tue, 04 Mar 2008 15:19:06 +0000

author
mcimadamore
date
Tue, 04 Mar 2008 15:19:06 +0000
changeset 7
d472e2fbcc39
parent 1
9a66ca7c79fa
child 69
82c7aa6fe50a
permissions
-rw-r--r--

6608214: Exception throw while analysing a file with error
Summary: bad error-recovery after bad type-variable bound is detected
Reviewed-by: jjg

duke@1 1 InnerNamedConstant_2.java:22: inner classes cannot have static declarations
duke@1 2 static int x = 1; // ERROR - static not final
duke@1 3 ^
duke@1 4 InnerNamedConstant_2.java:23: inner classes cannot have static declarations
duke@1 5 static final String z; // ERROR - static blank final
duke@1 6 ^
duke@1 7 InnerNamedConstant_2.java:25: cannot assign a value to final variable z
duke@1 8 z = "foobar"; // Error may be reported here. See 4278961.
duke@1 9 ^
duke@1 10 InnerNamedConstant_2.java:34: inner classes cannot have static declarations
duke@1 11 static final int y = Inner1.x * 5; // ERROR - initializer not constant
duke@1 12 ^
duke@1 13 4 errors

mercurial