-
Bug
-
Resolution: Fixed
-
P4
-
6
-
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.
---
---
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.
---
- relates to
-
JDK-8191817 SwingWorker does not change the state to DONE on exception in done (Fix for JDK-6557137 is not present)
-
- Closed
-