diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-13 17:05:04 +0700 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2024-02-13 17:05:04 +0700 |
commit | c028a472697a6934a538f2d61cb9974a66421fb1 (patch) | |
tree | bd70e5b647c2e1ad6fee7d6b983d82416b36d4be /tests/src/test/java/org | |
parent | 8478d33a68781b3dd950224eb3ebbec6727bfc8e (diff) | |
download | aspectj-c028a472697a6934a538f2d61cb9974a66421fb1.tar.gz aspectj-c028a472697a6934a538f2d61cb9974a66421fb1.zip |
Add tests for underscores in pointcuts on Java 21+
See also:
https://github.com/eclipse-aspectj/eclipse.jdt.core/commit/5d2f2aecd2
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/src/test/java/org')
-rw-r--r-- | tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java | 12 |
1 files changed, 12 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 79ce4c6cb..255583efd 100644 --- a/tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java +++ b/tests/src/test/java/org/aspectj/systemtest/ajc1921/Java21PreviewFeaturesTests.java @@ -8,6 +8,7 @@ package org.aspectj.systemtest.ajc1921; import junit.framework.Test; +import org.aspectj.systemtest.ajc10x.Ajc10xTests; import org.aspectj.testing.XMLBasedAjcTestCase; import org.aspectj.testing.XMLBasedAjcTestCaseForJava21Only; @@ -46,6 +47,17 @@ public class Java21PreviewFeaturesTests extends XMLBasedAjcTestCaseForJava21Only System.out.println("Unnamed patterns still are not implemented with the Java 21 release Eclipse 2023-12 (4.30)"); } + /** + * Same as {@link Ajc10xTests#test052()}, but compiled to target 21 instead of 1.4 + */ + public void testUnderscoreInPointcutPattern1() { + runTest("underscore can still be used in pointcut patterns on Java 21+ - 1"); + } + + public void testUnderscoreInPointcutPattern2() { + runTest("underscore can still be used in pointcut patterns on Java 21+ - 2"); + } + public void testNamedClassWithSimpleMainMethod() { runTest("named class with simple main method"); } |