--- /dev/null
+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);
+ }
+
+}
+
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");}
<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 -->
</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">