If you use the AspectJ compiler with an Aspect library such as Springs and you do not have any classes that match a particular Aspect you get:
[WARNING] advice defined in org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect has not been applied [Xlint:adviceDidNotMatch]
But for this particular project I don't need this aspect as well as some other aspects.
It seems you can configure the warnings with -Xlint but it looks like you can only turn off all the warning for advice that doesn't match (adviceDidNotMatch=ignore
). What I really want to do is exclude certain Aspects such as org.springframework.orm.jpa.aspectj.JpaExceptionTranslatorAspect
. I can't seem to find an example of excluding an aspect.