From f8fac37d1e4ec74eb13389c0968f4868d0116ad0 Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 21 Aug 2008 18:13:04 +0000 Subject: [PATCH] 194429: test and fix: include context in error --- tests/bugs162/pr194429/A.java | 18 ++++++++++++++++++ .../aspectj/systemtest/ajc162/Ajc162Tests.java | 1 + .../org/aspectj/systemtest/ajc162/ajc162.xml | 6 ++++++ 3 files changed, 25 insertions(+) create mode 100644 tests/bugs162/pr194429/A.java diff --git a/tests/bugs162/pr194429/A.java b/tests/bugs162/pr194429/A.java new file mode 100644 index 000000000..c6a0841f8 --- /dev/null +++ b/tests/bugs162/pr194429/A.java @@ -0,0 +1,18 @@ +import java.util.*; + +public class A { + public void foo(Set s) { + } + public void goo(Map s) { + } +} + +aspect X { + + pointcut p(Set s): execution(* *(..)) && args(s); + + before(Map m): p(m) { + } + +} + diff --git a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java index 08dba1573..7b06234bc 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -19,6 +19,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { // AspectJ1.6.2 + public void testMissingContext_pr194429() { runTest("missing context"); } public void testWarningsForLimitations_pr210114() { runTest("warnings for limitations"); } public void testPTW_pr244830() { runTest("ptw initFailureCause"); } public void testGenericItdsOverrides_pr222648() { runTest("generic itds - overrides"); } diff --git a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml index ccbe977f0..1b3cfed02 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml @@ -3,6 +3,12 @@ + + + + + + -- 2.39.5