test/tools/javac/InnerNamedConstant_2.out

Wed, 02 Jul 2008 12:56:02 -0700

author
xdono
date
Wed, 02 Jul 2008 12:56:02 -0700
changeset 54
eaf608c64fec
parent 1
9a66ca7c79fa
child 69
82c7aa6fe50a
permissions
-rw-r--r--

6719955: Update copyright year
Summary: Update copyright year for files that have been modified in 2008
Reviewed-by: ohair, tbell

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

mercurial