aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/test/java/org
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-13 17:05:04 +0700
committerAlexander Kriegisch <Alexander@Kriegisch.name>2024-02-13 17:05:04 +0700
commitc028a472697a6934a538f2d61cb9974a66421fb1 (patch)
treebd70e5b647c2e1ad6fee7d6b983d82416b36d4be /tests/src/test/java/org
parent8478d33a68781b3dd950224eb3ebbec6727bfc8e (diff)
downloadaspectj-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.java12
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");
}