Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8150850

[JVMCI] NPE when executing HotSpotConstantReflectionProvider.readStableFieldValue

XMLWordPrintable

    • 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.

            kshefov Konstantin Shefov
            kshefov Konstantin Shefov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: