<Swing Dev> 6480289 Replace ThreadPool creation code in SwingWorker with java.util.concurrent
Igor Kushnirskiy
Igor.Kushnirskiy at Sun.COM
Mon Nov 12 16:57:48 UTC 2007
Hi Matthias,
Matthias Ernst wrote:
> Hi,
>
> I don't know whether you guys still use jdk-collaboration[1], so I
> double post here.
>
> I believe the fix is incomplete. The shutdown hook only
> calls ExecutorService#shutdown but it also needs to call
> #awaitTermination. #shutdown does not block. I've seen this
> happen several times, the #shutdown method's naming is
> unfortunate.
Completely agree. A new bug was opened: 6628607 [SwingWorker's
shutdownHook needs to call executorService.awaitTermination]
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6628607
Thanks,
Igor
>
> See the last example in
> http://java.sun.com/javase/6/docs/api/java/util/concurrent/ExecutorService.html.
>
> Matthias
>
> [1] https://jdk-collaboration.dev.java.net/servlets/ProjectForumMessageView?messageID=21974&forumID=1463
More information about the swing-dev
mailing list