From: aclement Date: Mon, 3 Nov 2008 22:18:40 +0000 (+0000) Subject: 253109: fix X-Git-Tag: V1_6_3rc1~101 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44bc4850c95f12d26f0554102ef124e8fa9ed396;p=aspectj.git 253109: fix --- 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 @@ + + + + + +