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

NPEs when executing some HotSpotConstantReflectionProvider with null args

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • 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.

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

              Created:
              Updated:
              Resolved: