1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/test/tools/javac/Diagnostics/compressed/T8012003c.java Wed May 15 14:00:31 2013 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +/** 1.5 + * @test /nodynamiccopyright/ 1.6 + * @bug 8012003 1.7 + * @summary Method diagnostics resolution need to be simplified in some cases 1.8 + * test simplification of lambda type-checking error leading to resolution failure 1.9 + * @compile/fail/ref=T8012003c.out -XDrawDiagnostics -Xdiags:compact T8012003c.java 1.10 + */ 1.11 + 1.12 +class T8012003c { 1.13 + 1.14 + interface I { 1.15 + void m(P p); 1.16 + } 1.17 + 1.18 + void m(I i) { } 1.19 + 1.20 + void test() { 1.21 + m(p->p.m()); 1.22 + } 1.23 +} 1.24 + 1.25 +class P { 1.26 + private void m() { } 1.27 +}