A NullPointerException is thrown, when one calls the following jdk.vm.ci.hotspot.HotSpotConstantReflectionProvider methods with null args:
1) readArrayLength(null);
2) readArrayElement(null, someIndex);
3) boxPrimitive(null);
4) unboxPrimitive(null);
According to javadoc of these methods, NPE should not be thrown in such cases.
1) readArrayLength(null);
2) readArrayElement(null, someIndex);
3) boxPrimitive(null);
4) unboxPrimitive(null);
According to javadoc of these methods, NPE should not be thrown in such cases.