test/langtools/tools/javac/generics/UncheckedArray.java
author erikj
Tue, 12 Sep 2017 19:03:39 +0200
changeset 47216 71c04702a3d5
parent 30721 langtools/test/tools/javac/generics/UncheckedArray.java@1024d425d97e
permissions -rw-r--r--
8187443: Forest Consolidation: Move files to unified layout Reviewed-by: darcy, ihse

/*
 * @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][];
    }
}