Mon, 23 Sep 2013 17:27:38 +0400
7154966: CRs found to be in Fixed state with no test and no noreg- keyword.
Reviewed-by: ksrini
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 }