[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [aspectj-users] Are there conflicts using LTW and CTW in the same application?
|
Yes, Eric, a fully qualified class name is necessary. Like this it works:
<exclude within="@org.aspectj.lang.annotation.Aspect *" />
BTW, adding your CTW aspects to the LTW configuration also works, but of course it is only a workaround. In Andy's Bugzilla example instead of "exclude within" this helps, too:
<aspects>
<aspect name="X"/> <!-- CTW (workaround)-->
<aspect name="Y"/> <!-- LTW -->
</aspects>
--
Alexander Kriegisch
https://scrum-master.de
Eric B schrieb am 15.06.2018 03:46:
Is my syntax for exclusion incorrect though? It doesn't seem to be working. I added:
<weaver options="-Xlint:ignore">
<!-- due to a bug in the AspectJ LTW, exclude any precompiled @Aspect classes from being a weave destination -->
<exclude within="(@Aspect *..*)" />
<dump within="org.webapp.sso..*" beforeandafter="true"/>
</weaver>
But I still see the aspect being rewritten (and reverted) in the _ajdump folder. However, if i explicitly set the exclude to the full package name:
<exclude within="org.webapp.sso..*" />
it works fine.
Is my exclusion syntax by Annotation name incorrect? Do I need to specify a fully-qualified annotation name (ie: <within="(@org.aspectj.lang.annotation.Aspect *..*")/> )?
Thanks,
Eric