Duplicate :
|
test/closed/compiler/6661918 fails with NullPointerException with DeoptimizeALot (args: -Xcomp -XX:-PrintVMOptions -XX:CompileThreshold=100 -XX:+DeoptimizeALot -XX:-DoEscapeAnalysis -XX:DefaultMaxRAMFraction=8): public final class DerivedClass /* extends Object */ { } public static boolean run() { Object[][][][][] x = new Object[1][2][][][]; x[0][0] = new DerivedClass[3][4][5]; <<<<<<<<<<< NullPointerException here !!! x[0][0][0][0][0] = new DerivedClass(); return (x[0][0] instanceof DerivedClass[][][]); } java.lang.NullPointerException at Test6661918.run(Test6661918.java:22) at Test6661918.main(Test6661918.java:12)