jdk-24/langtools/test/tools/javac/7085024/T7085024.java
Maurizio Cimadamore 68039c2904 7085024: internal error; cannot instantiate Foo
Types.isConvertible does not handle erroneous types correctly

Reviewed-by: jjg
2011-08-31 16:11:28 +01:00

13 lines
346 B
Java

/*
* @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 );
}