aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-12-10 16:55:33 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-12-11 03:38:37 +0100
commit8c72d2da438d06885d48ffd3ade30b89a782b874 (patch)
treed80c381cff3c700115f5584cde1f9eaa38835bec /tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml
parent6be5a0a6a62e9afefad53a27f4c75d95ae7dac74 (diff)
downloadaspectj-8c72d2da438d06885d48ffd3ade30b89a782b874.tar.gz
aspectj-8c72d2da438d06885d48ffd3ade30b89a782b874.zip
Add tests for Java 21 unnamed patterns
TODO: Activate after https://github.com/eclipse-jdt/eclipse.jdt.core/issues/893 is done. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml')
-rw-r--r--tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml41
1 files changed, 41 insertions, 0 deletions
diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml
index a7b5d0d95..edb41fb31 100644
--- a/tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml
+++ b/tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml
@@ -259,4 +259,45 @@
</run>
</ajc-test>
+ <!-- Java 21 preview -->
+ <!-- TODO: Activate after https://github.com/eclipse-jdt/eclipse.jdt.core/issues/893 is done -->
+ <ajc-test dir="features1921/java21" vm="21" title="unnamed patterns">
+ <compile files="UnnamedPatternsPreview1.java" options="--enable-preview -21"/>
+ <run class="UnnamedPatternsPreview1" vmargs="--enable-preview">
+ <stdout ordered="yes">
+ <line text="0"/>
+ <line text="1"/>
+ <line text="java.awt.Point[x=1,y=2]"/>
+ <line text="java.awt.Point[x=4,y=5]"/>
+ <line text="java.awt.Point[x=1,y=0]"/>
+ <line text="java.awt.Point[x=4,y=0]"/>
+ <line text="Bad number: 123xy"/>
+ <line text="Doing something within scoped context"/>
+ <line text="Closing scoped context"/>
+ <line text="{ONE=NODATA, TWO=NODATA, THREE=NODATA}"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
+ <!-- Java 21 preview -->
+ <!-- TODO: Activate after https://github.com/eclipse-jdt/eclipse.jdt.core/issues/893 is done -->
+ <ajc-test dir="features1921/java21" vm="21" title="unnamed patterns aspect">
+ <compile files="UnnamedPatternsPreview1Aspect.java" options="--enable-preview -21"/>
+ <run class="UnnamedPatternsPreview1Aspect" vmargs="--enable-preview">
+ <stdout ordered="yes">
+ <line text="execution(void UnnamedPatternsPreview1Aspect.main(String[]))"/>
+ <line text="0"/>
+ <line text="1"/>
+ <line text="java.awt.Point[x=1,y=2]"/>
+ <line text="java.awt.Point[x=4,y=5]"/>
+ <line text="java.awt.Point[x=1,y=0]"/>
+ <line text="java.awt.Point[x=4,y=0]"/>
+ <line text="Bad number: 123xy"/>
+ <line text="Doing something within scoped context"/>
+ <line text="Closing scoped context"/>
+ <line text="{ONE=NODATA, TWO=NODATA, THREE=NODATA}"/>
+ </stdout>
+ </run>
+ </ajc-test>
+
</suite>