[ sisc-Bugs-1461906 ] thread errors not propagating outer exception
"SourceForge.net" <[email protected]> Thu, 30 Mar 2006 23:31:25 -0800
| Newsgroups | gmane.comp.java.sisc.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #1461906, was opened at 2006-03-31 08:31 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1461906&group_id=23735 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Matthias Radestock (mradestock) Assigned to: Nobody/Anonymous (nobody) Summary: thread errors not propagating outer exception Initial Comment: SISC (1.13.2-rc) #;> (import threading) #;> (define t (thread/spawn (lambda () (+ (/ 1 0))))) #;> (thread/join t) finished-with-error #;> (+ (thread/result t)) Error in /: <java.lang.ArithmeticException>: division by zero. console:2:39: <from call to /> [previous entry repeated twice] I would have expected the error to be reported as arising from the call to thread/result, with the root cause set to the error that got reported above. Looking at the code, it is obvious why this is not happening: rather than calling error(...), thread/result explicitly causes the failure continuation to be invoked with the error raised by the thread. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=379534&aid=1461906&group_id=23735 ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642