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

Clarify NPE behavior of Throwable.addSuppressed(null)

    Details

    • Subcomponent:
    • Resolved In Build:
      b138
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      The JCK team has requested a specification clarification over whether the second call to addSuppressed below should trigger an NPE

      Throwable t = new Throwable();
      t.addSuppressed(null); // Okay
      t.addSuppressed(null); // Currently triggers an NPE

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                darcy Joe Darcy
                Reporter:
                darcy Joe Darcy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: