]> source.dussan.org Git - aspectj.git/commit
Add the first few Java 19 tests
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 3 Oct 2022 15:17:50 +0000 (17:17 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Mon, 3 Oct 2022 15:17:50 +0000 (17:17 +0200)
commitec67725ea41ae69453d4ee2624b311746aab3c26
tree88325bd82702b7f5521878d5075b5040f1904d9b
parent2548a8ab0b3649ed3fc8eac331ebeb1f28f02c3d
Add the first few Java 19 tests

For now, only the "pattern matching for switch" tests from previews 1
and 2 were adjusted to work in preview 3, because guarded patterns were
replaced by 'when' clauses in 'switch' blocks. Therefore, existing test
classes did not compile anymore and had to be replaced by syntactically
upgraded versions with content merged from preview 1 and 2 classes.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
16 files changed:
.github/workflows/maven.yml
bcel-builder/src/main/java/org/aspectj/apache/bcel/Constants.java
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava19Only.java [new file with mode: 0644]
testing/src/test/java/org/aspectj/testing/XMLBasedAjcTestCaseForJava19OrLater.java [new file with mode: 0644]
tests/features1919/java19/SwitchPatternPreview3Aspect.aj [new file with mode: 0644]
tests/features1919/java19/SwitchPatternPreview3Error1.java [new file with mode: 0644]
tests/features1919/java19/SwitchPatternPreview3Error2.java [new file with mode: 0644]
tests/features1919/java19/SwitchPatternPreview3OK.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/AllTests19.java
tests/src/test/java/org/aspectj/systemtest/ajc1919/Ajc1919TestsJava.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc1919/AllTestsAspectJ1919.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc1919/Bugs1919Tests.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc1919/Java19PreviewFeaturesTests.java [new file with mode: 0644]
tests/src/test/java/org/aspectj/systemtest/ajc1919/SanityTestsJava19.java [new file with mode: 0644]
tests/src/test/resources/org/aspectj/systemtest/ajc1919/ajc1919.xml [new file with mode: 0644]
tests/src/test/resources/org/aspectj/systemtest/ajc1919/sanity-tests-19.xml [new file with mode: 0644]