Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-6131

AsyncFutureTask fail ensure Exception presence

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 20.0.0.Beta5, 20.0.0.Final
    • 20.0.0.Beta2
    • Server
    • None

      The AsyncFutureTask#get throws an java.util.concurrent.ExecutionException if the state is "FAILED", and uses the Object result as cause. If the cause is null, the caller of get, usually a different thread, will only see it's own stacktrace calling get, but not the one of the root cause.

      To ensure AsyncFutureTask#setFailure is called correctly with an cause, all places should be checked for null. In case of a missing exception a placeholder (in the correct thread) shall be set.

            xf01213 Boris Unckel (Inactive)
            xf01213 Boris Unckel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: