[
https://jira.jboss.org/jira/browse/JBAOP-388?page=com.atlassian.jira.plug...
]
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