[ 
https://issues.apache.org/jira/browse/PIVOT-769?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13061855#comment-13061855
 ] 

Sandro Martini commented on PIVOT-769:
--------------------------------------

Hi Chris,
I haven't looked at it, but I think that at least we can add a 
System.err.println(exception);
and probably we can catch Throwable (as we already do in some critical places) 
... if you want/have some time, do it.
Then something other has to be added in your opinion ?

Note: if you find other places where an Exception is 'swallowed' without any 
notification, write here so we can see what to do (I fixed some warnings on 
this with FindBugs) ...

Bye


> A Task's TaskListener will not be called if a Throwable is thown when the 
> task is executed
> ------------------------------------------------------------------------------------------
>
>                 Key: PIVOT-769
>                 URL: https://issues.apache.org/jira/browse/PIVOT-769
>             Project: Pivot
>          Issue Type: Improvement
>          Components: core-util
>    Affects Versions: 2.0
>            Reporter: Chris Bartlett
>            Priority: Minor
>             Fix For: 2.0.1
>
>
> org.apache.pivot.util.concurrent.Task.ExecuteCallback.run() only catches and 
> records Exceptions as 'faults'.
> try {
>     result = execute();
> } catch(Exception exception) {
>     fault = exception;
> }
> If a java.lang.Error or other non-Exception Throwable is thrown while the 
> task is executing, the thread will be killed off and neither of the 
> TaskListener callback methods will be executed.  
> Also, nothing will be logged to syserr, sysout or elsewhere meaning the 
> Throwable is 'swallowed' without any notification.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to