From 44bc4850c95f12d26f0554102ef124e8fa9ed396 Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 3 Nov 2008 22:18:40 +0000 Subject: [PATCH] 253109: fix --- tests/bugs163/pr253109/CodeFour.java | 13 +++++++++++++ tests/src/org/aspectj/systemtest/ajc150/ajc150.xml | 5 ++++- .../org/aspectj/systemtest/ajc163/Ajc163Tests.java | 8 ++++++-- tests/src/org/aspectj/systemtest/ajc163/ajc163.xml | 6 ++++++ 4 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 tests/bugs163/pr253109/CodeFour.java diff --git a/tests/bugs163/pr253109/CodeFour.java b/tests/bugs163/pr253109/CodeFour.java new file mode 100644 index 000000000..729ad8837 --- /dev/null +++ b/tests/bugs163/pr253109/CodeFour.java @@ -0,0 +1,13 @@ +import java.util.*; + +public aspect CodeFour { + + static final class FinalSet extends HashSet {} + + before(): execution(* *(..)) && args(List) {} + + public void m(FinalSet ss) { + // List l = (List)ss; // cannot write this (FinalSet is final) so pointcut should not match + } + +} diff --git a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml index 67ca6e191..1e878b860 100644 --- a/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml +++ b/tests/src/org/aspectj/systemtest/ajc150/ajc150.xml @@ -5408,7 +5408,7 @@ - + @@ -5536,6 +5536,9 @@ + + + diff --git a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java index 3641fcd51..8818ef5d9 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc163/Ajc163Tests.java @@ -22,7 +22,7 @@ import org.aspectj.testing.Utils; import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { -/* + public void testGenericPointcuts_1() { runTest("generic pointcuts - 1"); } @@ -34,7 +34,11 @@ public class Ajc163Tests extends org.aspectj.testing.XMLBasedAjcTestCase { public void testGenericPointcuts_3() { runTest("generic pointcuts - 3"); } -*/ + + public void testGenericPointcuts_4() { + runTest("generic pointcuts - 4"); + } + // public void testBrokenLVT_pr194314_1() throws Exception { // runTest("broken lvt - 1"); // JavaClass jc = Utils.getClassFrom(ajc.getSandboxDirectory().getAbsolutePath(), "Service"); diff --git a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml index 6fcc6166a..af8154154 100644 --- a/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml +++ b/tests/src/org/aspectj/systemtest/ajc163/ajc163.xml @@ -25,6 +25,12 @@ + + + + + + -- 2.39.5