langtools/test/tools/javac/enum/ExplicitlyFinalEnum2.java
author katleman
Thu, 21 Aug 2014 14:16:14 -0700
changeset 25878 6d561031123e
parent 25309 dcd9a7e19669
permissions -rw-r--r--
Added tag jdk9-b27 for changeset 98ce0879ab4c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/*
25309
dcd9a7e19669 8044864: .out files for enum tests in tools/javac dir - part 1
sogoel
parents: 5520
diff changeset
     2
 * @test /nodynamiccopyright/
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * @bug 5009601
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary enum's cannot be explicitly declared final
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @author Joseph D. Darcy
25309
dcd9a7e19669 8044864: .out files for enum tests in tools/javac dir - part 1
sogoel
parents: 5520
diff changeset
     6
 * @compile/fail/ref=ExplicitlyFinalEnum2.out -XDrawDiagnostics ExplicitlyFinalEnum2.java
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
final enum ExplicitlyFinalEnum2 {
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
    FE {
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
        void foo() {return;}
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
    };
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
    abstract void foo();
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
}