diff options
-rw-r--r-- | tests/bugs152/pr144602/MyAspect.aj | 26 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc152/Ajc152Tests.java | 1 | ||||
-rw-r--r-- | tests/src/org/aspectj/systemtest/ajc152/ajc152.xml | 8 |
3 files changed, 34 insertions, 1 deletions
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 @@ <run class="TopLevelType"/> </ajc-test> + + <ajc-test dir="bugs152/pr144602" title="atAJ perthis aspect verification error"> + <compile files="MyAspect.aj" options="-1.5"/> + <run class="MyAspect"/> + </ajc-test> + <ajc-test dir="bugs152/pr132349" title="ITD on inner type of generic type - 2"> <compile files="TopLevelType2.java" options="-1.5"> <message kind="error" line="12"/> <!-- error message is currently crap - its a parser message --> @@ -339,7 +345,7 @@ </compile> </ajc-test> - <ajc-test dir="bugs152/pr144465" title="ltw with serialversionUID creation"> + <ajc-test dir="bugs152/pr144465" title="ltw with serialversionUID creation"> <compile files="BigHorribleClass.java"/> <compile files="AnAspect.java"/> <run class="BigHorribleClass" ltw="aop1.xml"> |