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

Clarify NPE behavior of Throwable.addSuppressed(null)

XMLWordPrintable

    • b138
    • generic
    • generic
    • Verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: