comparison: test/tools/javac/Diagnostics/compressed/T8012003c.java
test/tools/javac/Diagnostics/compressed/T8012003c.java
- changeset 1759
- 05ec778794d0
- parent 0
- 959103a6100f
equal
deleted
inserted
replaced
|
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 */ |
|
8 |
|
9 class T8012003c { |
|
10 |
|
11 interface I { |
|
12 void m(P p); |
|
13 } |
|
14 |
|
15 void m(I i) { } |
|
16 |
|
17 void test() { |
|
18 m(p->p.m()); |
|
19 } |
|
20 } |
|
21 |
|
22 class P { |
|
23 private void m() { } |
|
24 } |