jdk-24/test/langtools/tools/javac/6857948/T6857948.java
2023-01-17 04:43:40 +00:00

19 lines
391 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6857948
* @summary 6857948: Calling a constructor with a doubly bogus argument causes an internal error
* @author Maurizio Cimadamore
*
* @compile/fail/ref=T6857948.out -XDrawDiagnostics T6857948.java
*/
class Foo {
Foo(String v) {}
};
class Test {
public static void meth() {
Foo f = new Foo("Hello!",nosuchfunction()) {};
}
}