langtools/test/tools/javac/7085024/T7085024.java
author duke
Wed, 05 Jul 2017 23:01:50 +0200
changeset 44228 e46434c65a2b
parent 10452 c8f32009b413
permissions -rw-r--r--
Merge

/*
 * @test /nodynamiccopyright/
 * @bug 7085024
 * @summary internal error; cannot instantiate Foo
 * @compile/fail/ref=T7085024.out -XDrawDiagnostics T7085024.java
 */

class T7085024 {
    T7085024 (boolean ret) { } //internal error goes away if constructor accepts a reference type

    T7085024 f = new T7085024((NonExistentClass) null );
}