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

SwingWorker loses notifications if a handler throws an exception

XMLWordPrintable

      If a PropertyChangeListener or done() method throw an exception, all the accumulated notifications are lost.

      Consider the following scenario: SwingWorker has a PropertyChangeListener and overrides the done method, its doInBackground method quickly returns the result.

      The expected order is:
      1. propertyChange("STARTED state")
      2. done() method called
      3. propertyChange("DONE state")

      If the handler for STARTED state throws an exception, neither done() method is called nor DONE state notification is delivered.

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: