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

Chris Bartlett commented on PIVOT-769:
--------------------------------------

A valid point, and one that the release process does take care of as far as I 
am aware.  
The JIRA tickets that are resolved and included in each release are listed in 
the release notes.
Pivot 2.0 release notes are available here  
http://pivot.apache.org/download.cgi#2.0

While the Pivot API is evolving, changes are generally not made without reason, 
and without the opportunity for discussion.  

A bit of background - I discovered this issue after a previously working app of 
mine was behaving strangely due to some thread checking changes that had been 
made elsewhere.  These caused Errors to be thrown which were being silently 
swallowed. (I think it was java.lang.ExceptionInInitializerError in this 
instance).  Hopefully this will help others to catch similar problems with less 
effort.

> 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
>            Assignee: 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