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

ObjectMethods::bootstrap should specify NPE if any argument except lookup is null

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • 18
    • 18
    • core-libs
    • b13

    Description

      NullPointerException is thrown by ObjectMethods::bootstrap if any of the arguments except `names` is null but @throws NPE is missing in the spec

      Note: according to test (test/jdk/java/lang/runtime/ObjectMethodsTest.java) the only argument that can be null without a NPE being generated is `lookup` which is actually ignored inside of the method's body

      Attachments

        Issue Links

          Activity

            People

              vromero Vicente Arturo Romero Zaldivar
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: