aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources
diff options
context:
space:
mode:
authorAndy Clement <aclement@pivotal.io>2022-01-17 17:47:37 -0800
committerAndy Clement <aclement@pivotal.io>2022-01-17 17:47:37 -0800
commitb720626100766ec0c34985404d774eccb51efdc0 (patch)
treee3310ac13761767f646fa4690a4f9e2e591870d3 /tests/src/test/resources
parent08414a740dc00b3b3d08fc01e2d1a5b947395a45 (diff)
downloadaspectj-b720626100766ec0c34985404d774eccb51efdc0.tar.gz
aspectj-b720626100766ec0c34985404d774eccb51efdc0.zip
Fix annotation style support for if(true) and if(false)
The documentation specifies annotation style pointcuts can use if(false) or if(true) and not require a boolean return value and body for the @Pointcut annotated method but it doesn't work without this change to validation that recognizes the situation. Fixes #115
Diffstat (limited to 'tests/src/test/resources')
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
index 202258c94..64ba56bd9 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc198/ajc198.xml
@@ -100,4 +100,26 @@
<compile files="Buffers.java" options="--release 8"/>
</ajc-test>
+ <ajc-test dir="bugs198/github_115" title="annotation style A">
+ <compile files="A.java" options="-1.5">
+ <message kind="warning" line="28" text="advice defined in Azpect has not been applied [Xlint:adviceDidNotMatch]"/>
+ </compile>
+ <run class="A">
+ <stdout>
+ <line text="Azpect.before"/>
+ <line text="A.main"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <ajc-test dir="bugs198/github_115" title="annotation style B">
+ <compile files="B.java" options="-1.5"/>
+ <run class="B">
+ <stdout>
+ <line text="Azpect.before"/>
+ <line text="B.main"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite>