[jboss-jira] [JBoss JIRA] Commented: (JBAOP-388) Allow specification of the exception type for after-throwing advice

Flavia Rainone (JIRA) jira-events at lists.jboss.org
Sun Oct 19 21:53:20 EDT 2008


    [ https://jira.jboss.org/jira/browse/JBAOP-388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12434329#action_12434329 ] 

Flavia Rainone commented on JBAOP-388:
--------------------------------------

Currently, the @Thrown-annotated parameter can be of type:
- Throwable, as before this task was implemented
- an Exception type declared to be thrown by the joinpoint (for methods and constructors) or a type assignable from the declared exceptions
- RuntimeException
- any subtype of RuntimeException

Note that I'm following more or less the rules that indicate which exception type you can catch on a try/catch block (with the difference that I don't accept "Exception" when the joinpoint does not declare to throw exceptions).

> Allow specification of the exception type for after-throwing advice
> -------------------------------------------------------------------
>
>                 Key: JBAOP-388
>                 URL: https://jira.jboss.org/jira/browse/JBAOP-388
>             Project: JBoss AOP
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Documentation
>            Reporter: Flavia Rainone
>            Assignee: Flavia Rainone
>            Priority: Minor
>             Fix For: 2.0.0.GA
>
>
> We need to provide a way for the user to specify an exception type on @Thrown-annotated advice parameters.
> This task includes updating:
> - advice validation algorithm
> - overloaded advice selection algorithm
> - documentation (tutorial, reference manual, etc)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list