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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 18
    • 18
    • core-libs
    • b13

      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

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

              Created:
              Updated:
              Resolved: