NPEs when executing some HotSpotConstantReflectionProvider with null args

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: 9
    • Component/s: hotspot
    • b108
    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved: