langtools/test/tools/javac/enum/FauxSpecialEnum1.java
author hseigel
Wed, 02 Mar 2016 23:48:41 +0000
changeset 36397 c487ced7231c
parent 25436 93247e8442a1
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 5009601
 * @summary verify specialized enum classes can't be abstract
 * @author Joseph D. Darcy
 *
 * @compile/fail/ref=FauxSpecialEnum1.out -XDrawDiagnostics  FauxSpecialEnum1.java
 */

public enum FauxSpecialEnum1 {
    INFRARED {
        void test() {System.out.println("Concrete test");}
    },
    ULTRAVIOLET {
        abstract void test();
    };
    abstract void test();
}