AspectJ: Warning advice defined has not been applied [Xlint:adviceDidNotMatch]
November 13th, 2009 by jeremychoneIn Eclipse and AJDT, you will see the following warning if an advice has not been applied
advice defined in xxxx has not been applied [Xlint:adviceDidNotMatch] xxx.class...
To remove this, add the @SuppressAjWarnings({”adviceDidNotMatch”}) on your advice methods
For example:
public aspect MyAspect{
pointcut ...
@SuppressAjWarnings({"adviceDidNotMatch"})
Object around(Transactional transactional) : mylMethodExecution(transactional){
...
}
}
November 23rd, 2009 at 3:41 pm
Thanks, was looking for that