From: aclement Date: Tue, 30 Sep 2008 20:10:11 +0000 (+0000) Subject: testcode for 241861 and 148508 X-Git-Tag: V1_6_2~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=aca78f796d64583e8d17aac0bff6f6e502bbafa4;p=aspectj.git testcode for 241861 and 148508 --- diff --git a/tests/bugs162/PR148508.java b/tests/bugs162/PR148508.java new file mode 100644 index 000000000..2269e6700 --- /dev/null +++ b/tests/bugs162/PR148508.java @@ -0,0 +1,23 @@ + +aspect A { + pointcut broken1() : execution(* *(Object[]+)); +// pointcut broken2(): execution(* *(*)) && args(Object[]+); + + before(): broken1() { System.out.println("a"); } +// before(): broken2() { System.out.println("b"); } +} + +public class PR148508 { + + public static void main(String []argv) { + PR148508 instance = new PR148508(); +// instance.m1(new Object[]{}); + instance.m2(new Integer[]{}); +// instance.m3(new String[]{}); + } + +// public void m1(Object[] os) { } + public void m2(Integer[] is) { } +// public void m3(String[] ss) { } + +} diff --git a/tests/bugs162/pr241861/Test.java b/tests/bugs162/pr241861/Test.java new file mode 100644 index 000000000..be9ca0201 --- /dev/null +++ b/tests/bugs162/pr241861/Test.java @@ -0,0 +1,9 @@ +class Test { + O field; +} + +class P { + public static void main(String[] argv) { + new Test().field = 42; + } +} diff --git a/tests/bugs162/pr241861/X.java b/tests/bugs162/pr241861/X.java new file mode 100644 index 000000000..e633386ef --- /dev/null +++ b/tests/bugs162/pr241861/X.java @@ -0,0 +1,9 @@ +aspect Asp { + before(): execution(new(Integer,..)) {} +} + +class Outer { + public class Inner { + Inner(Integer arg) {} + } +} diff --git a/tests/bugs162/pr241861/Y.java b/tests/bugs162/pr241861/Y.java new file mode 100644 index 000000000..da4eb96c6 --- /dev/null +++ b/tests/bugs162/pr241861/Y.java @@ -0,0 +1,9 @@ +aspect Asp { + before(): execution(new(String)) {} +} + +class Outer { + public class Inner { + Inner(String arg) {} + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java index 5ac0d8a10..31fe77fed 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc162/Ajc162Tests.java @@ -50,6 +50,10 @@ public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { runTest("ltw perclause"); } +// public void testParserProblemSubArrayPatterns_pr148508() { +// runTest("parser problem for array subtypes"); +// } + public void testNullDelegateForArray_pr247683() { runTest("null delegate for array"); } @@ -165,17 +169,17 @@ public class Ajc162Tests extends org.aspectj.testing.XMLBasedAjcTestCase { } // public void testParamAnnosPipelining_pr241847() { runTest("param annos pipelining");} - // public void testParamAnnoInner_pr241861() { - // runTest("param annotation inner class"); - // } - // - // public void testParamAnnoInner_pr241861_2() { - // runTest("param annotation inner class - 2"); - // } - // - // public void testParamAnnoInner_pr241861_3() { - // runTest("param annotation inner class - 3"); - // } + //public void testParamAnnoInner_pr241861() { + // runTest("param annotation inner class"); + //} +// + //public void testParamAnnoInner_pr241861_2() { + // runTest("param annotation inner class - 2"); + //} +// + //public void testParamAnnoInner_pr241861_3() { + // runTest("param annotation inner class - 3"); + //} public void testAnnotationDecp_pr239441() { runTest("annotation decp"); diff --git a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml index bc1b177ed..c05528c63 100644 --- a/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml +++ b/tests/src/org/aspectj/systemtest/ajc162/ajc162.xml @@ -3,6 +3,11 @@ + + + + + @@ -241,19 +246,20 @@ - - + + + - + - +