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

Notes on exceptions coming from Gatherer downstream

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 24
    • core-libs

      In stream operations, if an exception occurs during evaluation, it is passed through the call stack back to the terminal operation. With the addition of Gatherer, user code is now part of the call stack, and such downstream exception emerge from the Gatherer.Downstream::push calls. It is possible that Gatherer implementations' exception handling block wrap these calls and accidentally swallow exceptions that should have been propagated. We should add a note to Downstream::push and other relevant APIs, to allow Gatherer writers better handle exceptions.

            vklang Viktor Klang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: