From: aclement Date: Wed, 31 May 2006 09:31:45 +0000 (+0000) Subject: testcase for 144602 X-Git-Tag: V1_5_2rc1~85 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=10f097893bfb615d3d7952252ab68bba1a1ad002;p=aspectj.git testcase for 144602 --- diff --git a/tests/bugs152/pr144602/MyAspect.aj b/tests/bugs152/pr144602/MyAspect.aj new file mode 100644 index 000000000..fb6880907 --- /dev/null +++ b/tests/bugs152/pr144602/MyAspect.aj @@ -0,0 +1,26 @@ +import org.aspectj.lang.annotation.*; + +@Aspect("perthis(call( * SomeClass.someMethod(..)))") +public class MyAspect { + + @Pointcut("call( * SomeClass.someMethod(..)) && args(j,k, *)") + public void pointcut( int j, int k) {} + + @Before("pointcut( j,k)") + public void advice( int j, int k ) { } + + public static void main(String []argv) { new SomeClass().foo();} +} + +class SomeClass { + public void someMethod(int a,int b,int c) { + } + + public void foo() { + someMethod(1,2,3); + someMethod(2,3,4); + someMethod(3,4,5); + } + +} + diff --git a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java index 7cb98a6ef..87c00def2 100644 --- a/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java +++ b/tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java @@ -24,6 +24,7 @@ import org.aspectj.testing.XMLBasedAjcTestCase; public class Ajc152Tests extends org.aspectj.testing.XMLBasedAjcTestCase { + public void testAtAJVerificationError_pr144602() { runTest("atAJ perthis aspect verification error");} public void testLTWAndGeneratingSUID_pr144465() { runTest("ltw with serialversionUID creation"); } public void testAspects14PerSingleton_pr122253() { runTest("aspects14 - persingleton");} public void testAspects14PerCflow_pr122253() { runTest("aspects14 - percflow");} diff --git a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml index 03bbb19d6..557d8182c 100644 --- a/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml +++ b/tests/src/org/aspectj/systemtest/ajc152/ajc152.xml @@ -94,6 +94,12 @@ + + + + + + @@ -339,7 +345,7 @@ - +