<Swing Dev> 6480289 Replace ThreadPool creation code in SwingWorker with java.util.concurrent

Matthias Ernst ernst.matthias at gmail.com
Mon Oct 22 08:16:29 UTC 2007


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.

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