Wed, 15 May 2013 14:00:31 +0100
8012003: Method diagnostics resolution need to be simplified in some cases
Summary: Unfold method resolution diagnostics when they mention errors in poly expressions
Reviewed-by: jjg, vromero
1 /**
2 * @test /nodynamiccopyright/
3 * @bug 8012003
4 * @summary Method diagnostics resolution need to be simplified in some cases
5 * test simplification of lambda type-checking error leading to resolution failure
6 * @compile/fail/ref=T8012003c.out -XDrawDiagnostics -Xdiags:compact T8012003c.java
7 */
9 class T8012003c {
11 interface I {
12 void m(P p);
13 }
15 void m(I i) { }
17 void test() {
18 m(p->p.m());
19 }
20 }
22 class P {
23 private void m() { }
24 }