You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2014/06/12 01:19:02 UTC
[jira] [Updated] (DELTASPIKE-638) re-visit inconsistent handling of
@BeforeHandles
[ https://issues.apache.org/jira/browse/DELTASPIKE-638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gerhard Petracek updated DELTASPIKE-638:
----------------------------------------
Description:
#throwOriginal in a @BeforeHandles method leads to #isHandled true, once there is a @Handles method for the same exception. however, in the end the exception gets thrown.
reason:
the 2nd instance of DefaultExceptionEvent (for @Handles methods) in ExceptionHandlerBroadcaster, uses the information from ExceptionToCatchEvent.
that also leads to the situation that every change done by a @BeforeHandles method isn't visible in a @Handles method.
was:
#throwOriginal in a @BeforeHandles method leads to #isHandled true, once there is a @Handles method for the same exception. however, in the end the exception gets thrown.
reason:
the 2nd instance of DefaultExceptionEvent (for @Handles methods) in ExceptionHandlerBroadcaster, uses the information from ExceptionToCatchEvent
> re-visit inconsistent handling of @BeforeHandles
> ------------------------------------------------
>
> Key: DELTASPIKE-638
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-638
> Project: DeltaSpike
> Issue Type: Task
> Components: ExceptionControl-Module
> Affects Versions: 1.0.0
> Reporter: Gerhard Petracek
> Assignee: Jason Porter
> Fix For: 1.0.1
>
>
> #throwOriginal in a @BeforeHandles method leads to #isHandled true, once there is a @Handles method for the same exception. however, in the end the exception gets thrown.
> reason:
> the 2nd instance of DefaultExceptionEvent (for @Handles methods) in ExceptionHandlerBroadcaster, uses the information from ExceptionToCatchEvent.
> that also leads to the situation that every change done by a @BeforeHandles method isn't visible in a @Handles method.
--
This message was sent by Atlassian JIRA
(v6.2#6252)