I have stumped myself with a problem involving Aspectj. What I am looking to do is have an "after() throwing" match against a call annotated with a method-level annotation.
@MyAnnotation
public void doSomething(Param p1, Param p2)
If I use
after() throwing(MyCustomException ex) : call (@com.me.MyAnnotation * *.*(..))
It works, however if I have add some parameters to my annotation then they do not get matched.
@MyAnnotation(value = "doobery")
public void doSomething(Param p1, Param p2)
What am I missing from my pointcut??
Just to clarify, I would like to match both examples and I don't care for the parameters in the annotation either.
Version of AspectJ 1.6