You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pivot.apache.org by "Chris Bartlett (JIRA)" <ji...@apache.org> on 2011/07/29 03:30:11 UTC

[jira] [Issue Comment Edited] (PIVOT-769) A Task's TaskListener will not be called if a Throwable is thown when the task is executed

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

Chris Bartlett edited comment on PIVOT-769 at 7/29/11 1:29 AM:
---------------------------------------------------------------

I understand your concerns and share them too.  API diffs can be useful, and could be incorporated into the release process (if they are not already)  I think I used http://javadiff.sourceforge.net/ a while ago.

I think this discussion is probably best continued on the user mailing list, if that is OK with you?  I will start a thread there shortly.  Hopefully more people will see it and chip in with ideas. That might lead to a JIRA ticket of its own requesting some specific things of the release process.

(And please do file a JIRA ticket for that bug if you are able to replicate it)

      was (Author: cbartlett):
    I understand your concerns and share them too.  API diffs can be useful, and could be incorporated into the release process (if they are not already)  I think I used http://javadiff.sourceforge.net/ a while ago.

I think this discussion is probably best continued on the mailing this, if that is OK with you?  I will start a thread there shortly.  Hopefully more people will see it and chip in with ideas. That might lead to a JIRA ticket of its own requesting some specific things of the release process.

(And please do file a JIRA ticket for that bug if you are able to replicate it)
  
> 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