aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs1919
diff options
context:
space:
mode:
authorAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-08 11:00:46 +0100
committerAlexander Kriegisch <Alexander@Kriegisch.name>2023-01-15 14:41:51 +0100
commitbe60722eab5c7f95d55df6f16baf41eaba671d85 (patch)
treef301704aefe30de7ca2ca4be56bc59f74012c72b /tests/bugs1919
parent0e3d9f0dbc853b168cf84118490ddcb487f2aa0f (diff)
downloadaspectj-be60722eab5c7f95d55df6f16baf41eaba671d85.tar.gz
aspectj-be60722eab5c7f95d55df6f16baf41eaba671d85.zip
Add regression tests for GitHub bug #24
Relates to https://github.com/eclipse/org.aspectj/issues/24. Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'tests/bugs1919')
-rw-r--r--tests/bugs1919/github_24/ExactlyMatchingAspect.aj9
-rw-r--r--tests/bugs1919/github_24/FuzzilyMatchingAspect.aj9
-rw-r--r--tests/bugs1919/github_24/MaybeMissingClass.java16
3 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs1919/github_24/ExactlyMatchingAspect.aj b/tests/bugs1919/github_24/ExactlyMatchingAspect.aj
new file mode 100644
index 000000000..8a78394c3
--- /dev/null
+++ b/tests/bugs1919/github_24/ExactlyMatchingAspect.aj
@@ -0,0 +1,9 @@
+public aspect ExactlyMatchingAspect {
+ after() : execution(public MaybeMissingClass MaybeMissingClass.*()) {
+ System.out.println(thisJoinPoint);
+ }
+
+ after() : execution(public MaybeMissingClass[] MaybeMissingClass.*()) {
+ System.out.println(thisJoinPoint);
+ }
+}
diff --git a/tests/bugs1919/github_24/FuzzilyMatchingAspect.aj b/tests/bugs1919/github_24/FuzzilyMatchingAspect.aj
new file mode 100644
index 000000000..999282873
--- /dev/null
+++ b/tests/bugs1919/github_24/FuzzilyMatchingAspect.aj
@@ -0,0 +1,9 @@
+public aspect FuzzilyMatchingAspect {
+ after() : execution(public MaybeMissing* MaybeMissing*.*()) {
+ System.out.println(thisJoinPoint);
+ }
+
+ after() : execution(public MaybeMissing*[] MaybeMissing*.*()) {
+ System.out.println(thisJoinPoint);
+ }
+}
diff --git a/tests/bugs1919/github_24/MaybeMissingClass.java b/tests/bugs1919/github_24/MaybeMissingClass.java
new file mode 100644
index 000000000..3fa5fa274
--- /dev/null
+++ b/tests/bugs1919/github_24/MaybeMissingClass.java
@@ -0,0 +1,16 @@
+public class MaybeMissingClass {
+ public static void main(String[] args) {
+ f1();
+ f2();
+ }
+
+ public static MaybeMissingClass f1() {
+ System.out.println("MaybeMissingClass.f1");
+ return null;
+ }
+
+ public static MaybeMissingClass[] f2() {
+ System.out.println("MaybeMissingClass.f2");
+ return null;
+ }
+}