Validate that an annotation being introduced on a joinpoint has the correct ElementType
---------------------------------------------------------------------------------------
Key: JBAOP-719
URL:
https://jira.jboss.org/jira/browse/JBAOP-719
Project: JBoss AOP
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 2.1.0.CR3
Reporter: jaikiran pai
JBoss AOP allows annotations to be introduced on joinpoints. However it does not validate
whether the annotation definition allows the annotation to be introduced on the joinpoint.
Example:
@Target(value=ElementType.TYPE)
public @interface MyOwnAnnotation
JBoss AOP allows this annotation (whose target is ElementType.TYPE) to be introduced on
methods and fields as well. This could be avoided by adding some validation during
annotation introduction. Please see the referenced forum thread for details.
--
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