1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/lambda/speculative/MissingError.java Wed Apr 27 01:34:52 2016 +0800 1.3 @@ -0,0 +1,17 @@ 1.4 +/* 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8008276 1.7 + * @summary assertion error in com.sun.tools.javac.comp.TransTypes.visitApply 1.8 + * @compile/fail/ref=MissingError.out -XDrawDiagnostics MissingError.java 1.9 + */ 1.10 +class MissingError { 1.11 + void test() { 1.12 + mtest(new Bad(){ Integer i = ""; }); 1.13 + } 1.14 + 1.15 + void mtest(Bad t){ } 1.16 +} 1.17 + 1.18 +class Bad { 1.19 + String s = 1; 1.20 +}