langtools/test/tools/javac/generics/UncheckedArray.java
author sogoel
Fri, 15 May 2015 16:53:42 -0700
changeset 30721 1024d425d97e
parent 5520 86e4b9a9da40
permissions -rw-r--r--
8074425: Group 13b: golden files for tests in tools/javac/generics dir Reviewed-by: jjg, darcy, mcimadamore

/*
 * @test /nodynamiccopyright/
 * @bug 4992316
 * @summary compiler allows new array of array of type parameter
 * @author gafter
 *
 * @compile/fail/ref=UncheckedArray.out -XDrawDiagnostics  UncheckedArray.java
 */

package unchecked.array;

class J<T> {
    {
        Object o = new T[3][];
    }
}