1 /*
 2  * @test /nodynamiccopyright/
 3  * @summary Check null store into multidimensional array
 4  * @compile/fail/ref=CheckMultiDimensionalArrayStore.out -XDrawDiagnostics -XDdev -XDenablePrimitiveClasses CheckMultiDimensionalArrayStore.java
 5  */
 6 
 7 public class CheckMultiDimensionalArrayStore {
 8     primitive final class V {
 9         final int x = 10;
10         class Y {
11             V [][][] va = new V[][][] {{{ null }}};
12             V [][] va2 =  {{ null }};
13             void foo() {
14                 va = new V[][][] {{{ null }}};
15                 va[0][0][0] = null;
16             }
17         }
18     }
19 }