1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/6857948/T6857948.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,18 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 6857948 1.7 + * @summary 6857948: Calling a constructor with a doubly bogus argument causes an internal error 1.8 + * @author Maurizio Cimadamore 1.9 + * 1.10 + * @compile/fail/ref=T6857948.out -XDrawDiagnostics T6857948.java 1.11 + */ 1.12 + 1.13 +class Foo { 1.14 + Foo(String v) {} 1.15 +}; 1.16 + 1.17 +class Test { 1.18 + public static void main() { 1.19 + Foo f = new Foo("Hello!",nosuchfunction()) {}; 1.20 + } 1.21 +}