langtools/test/tools/javac/varargs/6569633/T6569633.java
author mcimadamore
Mon, 24 Jan 2011 15:45:24 +0000
changeset 8047 c7f08cdb5c3c
permissions -rw-r--r--
6569633: Varargs: parser error when varargs element type is an array Summary: explicit error message when old-style array syntax is mixed with varargs Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
8047
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     1
/*
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     3
 * @bug     6569633
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     4
 * @author mcimadamore
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     5
 * @summary  Varargs: parser error when varargs element type is an array
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     6
 * @compile/fail/ref=T6569633.out -XDrawDiagnostics T6569633.java
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     7
 */
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     8
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
     9
class T6569633 {
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
    10
    void  m1 (Integer... i[]) { }
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
    11
    void  m2 (Integer[]... i) { }
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
    12
    void  m3 (Integer[]... i[]) { }
c7f08cdb5c3c 6569633: Varargs: parser error when varargs element type is an array
mcimadamore
parents:
diff changeset
    13
}