]> source.dussan.org Git - aspectj.git/commitdiff
Make Ajc165Tests.testFunkyPointcut_pr272233_2 pass
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Tue, 17 Jan 2023 18:56:27 +0000 (19:56 +0100)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 12 Apr 2024 13:32:39 +0000 (15:32 +0200)
The test needs to expect the lately introduced Xlint:arrayCannotBeVoid
warning to be thrown, because one of the pointcuts in
tests/bugs165/pr272233/Iffy2.java contains a 'void[]' return type in a
method signature.

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

index 7d879705fade04b6a1fe40681e27948cffd594a3..f48581f87db74836d0a9aafc3f56d918b1cc7fc7 100644 (file)
@@ -78,6 +78,7 @@
 
    <ajc-test dir="bugs165/pr272233" title="funky pointcut 2">
      <compile files="Iffy2.java" options="-1.5 -showWeaveInfo">
+       <message kind="warning" text="arrays cannot have a void type, but found 'void[]' in pointcut [Xlint:arrayCannotBeVoid]"/>
        <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:8)"/>
        <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:11)"/>
        <message kind="weave" text="advised by before advice from 'Iffy2' (Iffy2.java:14)"/>