diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-03-22 20:53:10 +0100 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-03-23 20:22:39 +0100 |
commit | 5a223d492823aeb1d5d655792193675811deb84a (patch) | |
tree | 5b7900a3f70cd037fa0b2f60b346cd8839b2dccf /tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml | |
parent | dcc2fd168c30a6d4293f3ceade2e95d822e67e36 (diff) | |
download | aspectj-5a223d492823aeb1d5d655792193675811deb84a.tar.gz aspectj-5a223d492823aeb1d5d655792193675811deb84a.zip |
Switch to Java 22 + add basic test suite
The tests from Java 21 were copied to 22. Inactive ones were activated
after their features under test were fixed/implemented. Preview ones
were promotes to final ones for unnamed variables and patterns.
TODO: Add tests for new Java 22 features and maybe adjust or
amend existing feature tests, if preview or final characteristics have
changed since Java 21.
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.xml | 6 |
1 files changed, 5 insertions, 1 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 494b6dadd..7e948495a 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc1921/ajc1921.xml @@ -261,6 +261,8 @@ <compile files="UnnamedPatternsPreview1.java" options="--enable-preview -21"/> <run class="UnnamedPatternsPreview1" vmargs="--enable-preview"> <stdout ordered="yes"> + <line text="2"/> + <line text="side effect"/> <line text="0"/> <line text="1"/> <line text="java.awt.Point[x=1,y=2]"/> @@ -278,10 +280,12 @@ <!-- 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"/> + <compile files="UnnamedPatternsPreview1Aspect.aj" options="--enable-preview -21"/> <run class="UnnamedPatternsPreview1Aspect" vmargs="--enable-preview"> <stdout ordered="yes"> <line text="execution(void UnnamedPatternsPreview1Aspect.main(String[]))"/> + <line text="2"/> + <line text="side effect"/> <line text="0"/> <line text="1"/> <line text="java.awt.Point[x=1,y=2]"/> |