langtools/test/tools/javac/6758789/T6758789b.java
author sogoel
Thu, 05 Jun 2014 10:57:10 -0700
changeset 24797 850ebd4d80a7
parent 3766 7e2df99e9223
permissions -rw-r--r--
8044072: Group 2: create .out files for OverrideChecks tests in tools/javac dir Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1534
e923a41e84cc 6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff changeset
     1
/*
3766
7e2df99e9223 6875336: some tests should use /nodynamiccopyright/
jjg
parents: 1534
diff changeset
     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
}