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

NPEs when executing some HotSpotConstantReflectionProvider with null args

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b108
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: