From 43cb1e2fc4dc127c39e550bdcd2efaf84c4b7a0f Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Sun, 15 Jan 2023 14:16:04 +0100 Subject: [PATCH] Fix failing tests after previous commit After the changes, the weaver's behaviour is now slightly different, but not actually buggy. Actually, in one case there is now a weaver warning for a non-matching pointcut which should have been there before, but was not. I.e., things have improved and the tests are even a bit better now. Signed-off-by: Alexander Kriegisch --- tests/bugs165/pr272233/Iffy2.java | 15 +++++++-- .../org/aspectj/systemtest/ajc162/ajc162.xml | 1 + .../org/aspectj/systemtest/ajc165/ajc165.xml | 33 ++++++++++--------- .../org/aspectj/systemtest/ajc193/ajc193.xml | 9 +++-- 4 files changed, 35 insertions(+), 23 deletions(-) diff --git a/tests/bugs165/pr272233/Iffy2.java b/tests/bugs165/pr272233/Iffy2.java index 15a5d79fd..99dd10935 100644 --- a/tests/bugs165/pr272233/Iffy2.java +++ b/tests/bugs165/pr272233/Iffy2.java @@ -1,15 +1,24 @@ import java.util.*; import org.aspectj.lang.annotation.*; -@Aspect +@Aspect class Iffy2 { - @Before("execution(!void[] *(..))") + @Before("execution(!void *(..))") public void advice1() {} - @Before("execution(!void[] *(..))") + @Before("execution(!void[] *(..))") public void advice2() {} + @Before("execution(!void *(..))") + public void advice3() {} + + @Before("execution(*..Collection[] *(..))") + public void advice4() {} + + @Before("execution(java.util.Collection[] *(..))") + public void advice5() {} + public Collection[] getCollectionArray() { return null; } diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc162/ajc162.xml index e45a21509..d63e5002f 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc162/ajc162.xml @@ -252,6 +252,7 @@ + diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml index 6c3b74d71..e1258bdfb 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc165/ajc165.xml @@ -1,12 +1,12 @@ - + - + @@ -17,7 +17,7 @@ - + @@ -28,15 +28,15 @@ - + - + - + @@ -45,20 +45,20 @@ - + - + - + @@ -69,20 +69,23 @@ - + - + - + + + + - + @@ -94,7 +97,7 @@ - + @@ -114,4 +117,4 @@ - \ No newline at end of file + diff --git a/tests/src/test/resources/org/aspectj/systemtest/ajc193/ajc193.xml b/tests/src/test/resources/org/aspectj/systemtest/ajc193/ajc193.xml index 10b6a8350..81f3222c5 100644 --- a/tests/src/test/resources/org/aspectj/systemtest/ajc193/ajc193.xml +++ b/tests/src/test/resources/org/aspectj/systemtest/ajc193/ajc193.xml @@ -139,9 +139,9 @@ Method call - - - + + + @@ -161,7 +161,6 @@ Method call - @@ -183,7 +182,7 @@ Method call - + -- 2.39.5