langtools/test/tools/javac/6717241/T6717241b.java
author jjg
Thu, 27 Aug 2009 11:08:27 -0700
changeset 3766 7e2df99e9223
parent 939 38e24969c7e9
child 6150 d055fa8ced62
permissions -rw-r--r--
6875336: some tests should use /nodynamiccopyright/ Reviewed-by: darcy
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
939
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     1
/**
3766
7e2df99e9223 6875336: some tests should use /nodynamiccopyright/
jjg
parents: 939
diff changeset
     2
 * @test /nodynamiccopyright/
939
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     3
 * @bug     6717241
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     4
 * @summary some diagnostic argument is prematurely converted into a String object
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     5
 * @author  Maurizio Cimadamore
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     6
 * @compile/fail/ref=T6717241b.out -XDstdout -XDrawDiagnostics T6717241b.java
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     7
 */
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     8
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
     9
class T6717241b {
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    10
    void test() {
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    11
        //this will generate a 'cant.resolve.location'
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    12
        Object o = v;
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    13
        //this will generate a 'cant.resolve.location.args'
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    14
        m1(1, "");
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    15
        //this will generate a 'cant.resolve.location.args.params'
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    16
        T6717241b.<Integer,Double>m2(1, "");
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    17
    }
38e24969c7e9 6717241: some diagnostic argument is prematurely converted into a String object
mcimadamore
parents:
diff changeset
    18
}