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

SwingWorker does not change the state to DONE on exception in done

XMLWordPrintable

    • beta
    • generic
    • generic
    • Not verified

      https://swingworker.dev.java.net/issues/show_bug.cgi?id=5
      ---
      when a RuntimeException occurs in the #done() method of a worker, the state of
      this worker does not change to DONE. Sometimes in applications it is needed to
      proceed the execution of the application regardless of such exceptions, e.g. you
      may want to clean up resources allocated by a worker. In the current
      implementation of the SwingWorker the bound property "state" is never changed to
      DONE in such situations, even though the worker has been finished due to an
      exception. And hence we are not able to clean up resources. I hope you will
      accept my patch and integrate it into the JDK.
      ---

            peterz Peter Zhelezniakov
            idk Igor Kushnirskiy (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: