If you use 
class(package.SomeClass) 
it matches on the class and should only annotate the class. Similarly, field(* 
*->field) 
should only annotate matched fields. I guess when matching for for example a 
method then in fact that method does not match 
class(@MyOwnAnnotation)
so effectively 
!class(@MyOwnAnnotation)
matches. Try

  | class($instanceof{java.lang.Object}) AND !class(@MyOwnAnnotation)
  | 
instead.

We don't do any validation of the ElementType, so if this is a big issue for 
you please add a JIRA issue.



View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224677#4224677

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224677
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to