aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs152/pr144602
diff options
context:
space:
mode:
authoraclement <aclement>2006-05-31 09:31:45 +0000
committeraclement <aclement>2006-05-31 09:31:45 +0000
commit10f097893bfb615d3d7952252ab68bba1a1ad002 (patch)
treea0ccc26c88abb4d38367a2c9c3ce0439173ef097 /tests/bugs152/pr144602
parentf18d686bf02bb4dff4011ec3609a9035955da428 (diff)
downloadaspectj-10f097893bfb615d3d7952252ab68bba1a1ad002.tar.gz
aspectj-10f097893bfb615d3d7952252ab68bba1a1ad002.zip
testcase for 144602
Diffstat (limited to 'tests/bugs152/pr144602')
-rw-r--r--tests/bugs152/pr144602/MyAspect.aj26
1 files changed, 26 insertions, 0 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);
+ }
+
+}
+