langtools/test/tools/javac/InnerNamedConstant_2.out
author xdono
Wed, 02 Jul 2008 12:56:02 -0700
changeset 735 372aa565a221
parent 10 06bc494ca11e
child 863 3113c955a388
permissions -rw-r--r--
6719955: Update copyright year Summary: Update copyright year for files that have been modified in 2008 Reviewed-by: ohair, tbell
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