jdk-24/langtools/test/tools/javac/6857948/T6857948.java
Maurizio Cimadamore fa2cb78a09 6857948: Calling a constructor with a doubly bogus argument causes an internal error
Problem when constructor resolution returns an erroneous symbol

Reviewed-by: jjg
2010-08-05 09:45:25 +01: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 main() {
Foo f = new Foo("Hello!",nosuchfunction()) {};
}
}