aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-04 14:55:42 +0100
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-04 15:19:53 +0100
commit5f46d44017d020822cf145ce0ff23cc44ecfdfad (patch)
treef7e35f321ddacbd86e06f383608891fb1bd3f63a /tests/src/test/resources/org/aspectj
parentc6a1bc127a9464bb1831fb04120123a62b100946 (diff)
downloadaspectj-5f46d44017d020822cf145ce0ff23cc44ecfdfad.tar.gz
aspectj-5f46d44017d020822cf145ce0ff23cc44ecfdfad.zip
Fix parenthesised AJ keyword compiler problem
Fixes #20. Needs JDT Core grammar fix. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/resources/org/aspectj')
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml
index 60d7e4f86..918313b97 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml
@@ -185,4 +185,23 @@
</run>
</ajc-test>
+ <!--
+ 'Syntax error, insert "Expression" to complete Expression' when compiling parenthesised expressions
+ containing AspectJ keywords, e.g. '(before)', see https://github.com/eclipse/org.aspectj/issues/20
+ -->
+ <ajc-test dir="bugs1919/github_20" vm="1.5" title="parenthesised expression with AspectJ keyword">
+ <compile files="ParenthesisedAJKeywords.java" options="-1.8 -showWeaveInfo"/>
+ <run class="ParenthesisedAJKeywords">
+ <stdout>
+ <line text="before"/>
+ <line text="after"/>
+ <line text="around"/>
+ <line text="aspect"/>
+ <line text="pointcut"/>
+ <line text="declare"/>
+ <line text="privileged"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite>