langtools/test/tools/javac/6758789/T6758789a.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=T6758789a.out -XDrawDiagnostics T6758789a.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
    void m1() {}
e923a41e84cc 6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff changeset
    12
    void m2(int i) {}
e923a41e84cc 6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff changeset
    13
    void test() {
e923a41e84cc 6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff changeset
    14
        m1(1);
e923a41e84cc 6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff changeset
    15
        m2();
e923a41e84cc 6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff changeset
    16
    }
e923a41e84cc 6758789: Some method resolution diagnostic should be improved
mcimadamore
parents:
diff changeset
    17
}