-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 9
-
Component/s: hotspot
-
b112
-
generic
-
generic
When one executes HotSpotConstantReflectionProvider::readStableFieldValue method for an instance field and JavaConstant.NULL_POINTER as a receiver, it throws an NPE. However, the javadoc says it should return null.
E.g. when we execute method HotSpotConstantReflectionProvider::readFieldValue for an instance field and JavaConstant.NULL_POINTER as a receiver, we get null as expected.
E.g. when we execute method HotSpotConstantReflectionProvider::readFieldValue for an instance field and JavaConstant.NULL_POINTER as a receiver, we get null as expected.