diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-12-11 09:13:40 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-12-11 03:38:37 +0100 |
commit | 05de3c05c3619c0aacd5b47a80ac1c6767deb39c (patch) | |
tree | b87ceda18dcf6ab02c3a01476a46043cf1d7e19f /tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java | |
parent | 8c72d2da438d06885d48ffd3ade30b89a782b874 (diff) | |
download | aspectj-05de3c05c3619c0aacd5b47a80ac1c6767deb39c.tar.gz aspectj-05de3c05c3619c0aacd5b47a80ac1c6767deb39c.zip |
Add tests for Java 21 unnamed classes and instance methods
TODO: Activate the unnamed class test after
https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1106 is done.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java b/tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java index bdde4b67e..79ce4c6cb 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java @@ -46,6 +46,25 @@ public class Java21PreviewFeaturesTests extends XMLBasedAjcTestCaseForJava21Only System.out.println("Unnamed patterns still are not implemented with the Java 21 release Eclipse 2023-12 (4.30)"); } + public void testNamedClassWithSimpleMainMethod() { + runTest("named class with simple main method"); + } + + public void testNamedAspectWithSimpleMainMethod() { + runTest("named aspect with simple main method"); + } + + /** + * Still not implemented with the Java 21 release Eclipse 2023-12 (4.30), + * see <a href="https://github.com/eclipse-jdt/eclipse.jdt.core/issues/1106">GitHub issue 1106</a>. + * <p> + * TODO: Activate after JDT Core implementation and merge. + */ + public void testUnnamedClassWithSimpleMainMethod() { + //runTest("unnamed class with simple main method"); + System.out.println("Unnamed classes still are not implemented with the Java 21 release Eclipse 2023-12 (4.30)"); + } + public static Test suite() { return XMLBasedAjcTestCase.loadSuite(Java21PreviewFeaturesTests.class); } |