Closed GoogleCodeExporter closed 9 years ago
Interesting. I see that the culprit is innerRun(). (Digression: This bug
reminds me a lot of one that we had in Guava:
<http://code.google.com/p/guava-libraries/source/detail?r=19d312977252b2f494f699
7d5dd881f349af6292&path=/guava/src/com/google/common/util/concurrent/Futures.jav
a>).
Here's the bug report to the JDK:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6415572
And here's the fix:
http://gee.cs.oswego.edu/cgi-bin/viewcvs.cgi/jsr166/src/main/java/util/concurren
t/FutureTask.java?view=log#rev1.55
I'm not sure what the proper fix here is, either. We *could* just say that
we're not too worried about working around JDK bugs, or we could import the
fixed FutureTask from jsr166.
Original comment by cpov...@google.com
on 13 May 2013 at 1:55
(Whatever we end up doing, I thank you for the report. This is bound to catch
someone else.)
Original comment by cpov...@google.com
on 13 May 2013 at 1:56
You're welcome! Thanks for Guava.. :)
Ah, fixed in Java 7. We have not yet upgraded to 7 though. Luckily that Error
was thrown due to a bad deploy on my dev setup, so nothing which we normally
have problems with.
Also, could this be related (or have a related fix)?
https://code.google.com/p/guava-libraries/issues/detail?id=1336
Anyhow, looking forward to a fix, whatever that turns out to be!
Original comment by johan%he...@gtempaccount.com
on 13 May 2013 at 2:06
Yes, Issue 1336's static ExecutionList.setUncaughtExceptionHandler is one
possible workaround. I have the usual reservations about static state, though,
so don't hold your breath on that one. It deserves some attention, but we're
already got some changes to Future exception handling going into 15.0, so I'm
especially nervous about making further changes.
http://code.google.com/p/guava-libraries/source/detail?r=0aa888b199bc12eae29633c
71a424bd28750961b
Original comment by cpov...@google.com
on 13 May 2013 at 5:30
A static approach would not be very practical, no. In our case we run the apps
in an OSGi environment, which means static configuration would not work at all
(since multiple applications share the same guava-bundle).
Original comment by johan%he...@gtempaccount.com
on 14 May 2013 at 6:28
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:12
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:08
Original issue reported on code.google.com by
johan%he...@gtempaccount.com
on 13 May 2013 at 1:36