author | mcimadamore |
Wed, 15 May 2013 14:00:31 +0100 | |
changeset 17582 | 4079713129dd |
permissions | -rw-r--r-- |
17582
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
1 |
/** |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 8012003 |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
4 |
* @summary Method diagnostics resolution need to be simplified in some cases |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
5 |
* test simplification of lambda type-checking error leading to resolution failure |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
6 |
* @compile/fail/ref=T8012003c.out -XDrawDiagnostics -Xdiags:compact T8012003c.java |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
7 |
*/ |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
8 |
|
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
9 |
class T8012003c { |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
10 |
|
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
11 |
interface I { |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
12 |
void m(P p); |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
13 |
} |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
14 |
|
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
15 |
void m(I i) { } |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
16 |
|
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
17 |
void test() { |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
18 |
m(p->p.m()); |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
19 |
} |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
20 |
} |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
21 |
|
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
22 |
class P { |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
23 |
private void m() { } |
4079713129dd
8012003: Method diagnostics resolution need to be simplified in some cases
mcimadamore
parents:
diff
changeset
|
24 |
} |