author | sogoel |
Thu, 05 Jun 2014 10:57:10 -0700 | |
changeset 24797 | 850ebd4d80a7 |
parent 3766 | 7e2df99e9223 |
permissions | -rw-r--r-- |
1534
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
1 |
/* |
3766 | 2 |
* @test /nodynamiccopyright/ |
1534
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 6758789 |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
4 |
* @summary 6758789: Some method resolution diagnostic should be improved |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
5 |
* @author Maurizio Cimadamore |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
6 |
* |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
7 |
* @compile/fail/ref=T6758789b.out -Werror -XDrawDiagnostics -Xlint:unchecked T6758789b.java |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
8 |
*/ |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
9 |
|
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
10 |
class T6758789a { |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
11 |
class Foo<T> {} |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
12 |
|
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
13 |
<X> void m(Foo<X> foo) {} |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
14 |
|
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
15 |
void test() { |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
16 |
m(new Foo()); |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
17 |
} |
e923a41e84cc
6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff
changeset
|
18 |
} |