Browse Source

ajc162.xml: Fix test failing after previous bugfix

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>
tags/V1_9_20_1
Alexander Kriegisch 9 months ago
parent
commit
9a16240a2c
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      tests/src/test/resources/org/aspectj/systemtest/ajc162/ajc162.xml

+ 2
- 2
tests/src/test/resources/org/aspectj/systemtest/ajc162/ajc162.xml View File

@@ -251,8 +251,8 @@
</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>


Loading…
Cancel
Save