From 1f1ace1f842758b1235bd471d66715238a653ae2 Mon Sep 17 00:00:00 2001 From: wisberg Date: Fri, 17 Feb 2006 19:41:52 +0000 Subject: [PATCH] test for 123553 --- tests/bugs151/pr123553/A.java | 19 +++++++++++++++++++ .../systemtest/ajc151/Ajc151Tests.java | 3 ++- .../org/aspectj/systemtest/ajc151/ajc151.xml | 5 +++++ 3 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 tests/bugs151/pr123553/A.java diff --git a/tests/bugs151/pr123553/A.java b/tests/bugs151/pr123553/A.java new file mode 100644 index 000000000..fae646ba0 --- /dev/null +++ b/tests/bugs151/pr123553/A.java @@ -0,0 +1,19 @@ + +public class A { + static Object s; + public static void main(String[] args) { + String t = "Hello, World!"; + t.toString(); + if (s != t) throw new Error(); + } + static abstract aspect GenericAspect { + abstract pointcut checkpoint(T t); + + // advice declaration causes error + after(T t): checkpoint(t) { s = t;} + } + static aspect AAA extends GenericAspect{ + pointcut checkpoint(String s) : target(s) && + call(String String.toString()); + } +} diff --git a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java index 95a246013..11af51054 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc151/Ajc151Tests.java @@ -23,7 +23,8 @@ import org.aspectj.systemtest.ajc150.GenericsTests; import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc151Tests extends org.aspectj.testing.XMLBasedAjcTestCase { - + + public void testGenericAdviceParameters_pr123553() { runTest("generic advice parameters");} public void testMemberTypesInGenericTypes_pr122458() { runTest("member types in generic types");} public void testMemberTypesInGenericTypes_pr122458_2() { runTest("member types in generic types - 2");} public void testNPEOnDeclareAnnotation_pr123695() { runTest("Internal nullptr exception with complex declare annotation");} diff --git a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml index c470c67bf..dfbcc1b73 100644 --- a/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml +++ b/tests/src/org/aspectj/systemtest/ajc151/ajc151.xml @@ -3,6 +3,11 @@ + + + + + -- 2.39.5