]> source.dussan.org Git - aspectj.git/commitdiff
ajc162.xml: Fix test failing after previous bugfix
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Wed, 23 Aug 2023 03:13:02 +0000 (10:13 +0700)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Wed, 23 Aug 2023 03:39:24 +0000 (10:39 +0700)
A change made to ajc162.xml in commit 43cb1e2f has been reverted
and improved after the recent negated type pattern fix. Relates to #257.

The pointcut 'call(!void *.*(..)) && this(src) && target(dst)' actually
does match method call 'payloadClass.getPayload()' within the
around-advice in GenericClassInAdvice itself.

Improvement: Activate '-showWeaveInfo' and verify weaving message.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
tests/src/test/resources/org/aspectj/systemtest/ajc162/ajc162.xml

index d63e5002fef0254d6eaafd14b0e31cb660805898..698fc0390a9457d1b72df17355773564ade11723 100644 (file)
     </ajc-test>
 
     <ajc-test dir="bugs162/pr240693" title="privileged generics">
-        <compile files="PayloadClass.java SomeInterface.java GenericClassInAdvice.java" options="-1.5">
-          <message kind="warning" text="advice defined in GenericClassInAdvice has not been applied [Xlint:adviceDidNotMatch]"/>
+        <compile files="PayloadClass.java SomeInterface.java GenericClassInAdvice.java" options="-1.5 -showWeaveInfo">
+          <message kind="weave" text="'method-call(java.lang.Object PayloadClass.getPayload())' in Type 'GenericClassInAdvice'"/>
         </compile>
     </ajc-test>