diff -r 228b73431edb -r 655c0db5643b langtools/test/tools/javac/6857948/T6857948.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/6857948/T6857948.java Thu Aug 05 09:45:25 2010 +0100 @@ -0,0 +1,18 @@ +/* + * @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()) {}; + } +}