langtools/test/tools/javac/InnerNamedConstant_2.out
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 10 06bc494ca11e
child 863 3113c955a388
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
InnerNamedConstant_2.java:22: inner classes cannot have static declarations
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
        static int x = 1;                  // ERROR - static not final
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
                   ^
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
InnerNamedConstant_2.java:23: inner classes cannot have static declarations
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
        static final String z;             // ERROR - static blank final
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
                            ^
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
InnerNamedConstant_2.java:25: cannot assign a value to final variable z
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
            z = "foobar";                  // Error may be reported here. See 4278961.
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
            ^
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
InnerNamedConstant_2.java:34: inner classes cannot have static declarations
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
        static final int y = Inner1.x * 5; // ERROR - initializer not constant
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
                         ^
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
4 errors