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

CompletableFuture.whenComplete should use addSuppressed

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs

      Description

      CompletableFuture.whenComplete may have both the source future and the action fail with an exception. In this case the source exception is propagated, but the action exception should be added via Throwable.addSuppressed.

        Attachments

          Activity

            People

            Assignee:
            martin Martin Buchholz
            Reporter:
            martin Martin Buchholz
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: