test/langtools/tools/javac/ClassIsAbstract.java
author aph
Mon, 04 Nov 2019 13:13:34 -0500
changeset 58917 33f9271b3167
parent 47216 71c04702a3d5
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 4110534
 * @summary The fix for 1240831 broke the compiler.  It should
 *          report that class Abs cannot be instantiated.
 * @author turnidge
 *
 * @compile/fail/ref=ClassIsAbstract.out -XDrawDiagnostics  ClassIsAbstract.java
 */

abstract class Abs {
}

class ClassIsAbstract {
    void method() {
        new Abs();
    }
}