diff options
author | aclement <aclement> | 2009-05-22 19:35:20 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-05-22 19:35:20 +0000 |
commit | 5f15c2a8e4afbf5aa7d554142732da58b5cec5f2 (patch) | |
tree | a12f0ba8fadb240997d111785b154efdd14182d5 /tests/bugs165 | |
parent | d32d58db8f91e29e61843afc9107a798f07901e9 (diff) | |
download | aspectj-5f15c2a8e4afbf5aa7d554142732da58b5cec5f2.tar.gz aspectj-5f15c2a8e4afbf5aa7d554142732da58b5cec5f2.zip |
277508: more stable if_ method names
Diffstat (limited to 'tests/bugs165')
-rw-r--r-- | tests/bugs165/pr277508/Basic.java | 20 | ||||
-rw-r--r-- | tests/bugs165/pr277508/Basic2.java | 20 |
2 files changed, 40 insertions, 0 deletions
diff --git a/tests/bugs165/pr277508/Basic.java b/tests/bugs165/pr277508/Basic.java new file mode 100644 index 000000000..ec4e81568 --- /dev/null +++ b/tests/bugs165/pr277508/Basic.java @@ -0,0 +1,20 @@ +import java.lang.reflect.Method; + +public class Basic { + public static void main(String[] args) { + Method[] ms = X.class.getMethods(); + for (int i = 0; i < ms.length; i++) { + if (ms[i].getName().indexOf("if$")!=-1) { + System.out.println("if method: "+ms[i]); + } + } +} + public void m() {} +} + +aspect X { + before(): execution(* m(..)) && if(true==true) && if(true==(true || true)) { + } + before(): execution(* m(..)) && if(true==true) { + } +} diff --git a/tests/bugs165/pr277508/Basic2.java b/tests/bugs165/pr277508/Basic2.java new file mode 100644 index 000000000..73c151245 --- /dev/null +++ b/tests/bugs165/pr277508/Basic2.java @@ -0,0 +1,20 @@ +import java.lang.reflect.Method; + +public class Basic2 { + + public static void main(String[] args) { + Method[] ms = X.class.getMethods(); + for (int i = 0; i < ms.length; i++) { + if (ms[i].getName().indexOf("if$")!=-1) { + System.out.println("if method: "+ms[i]); + } + } +} + public void m() {} +} + +aspect X { + pointcut p(): execution(* m(..)) && if(true==true) && if(true==(true || true)); + pointcut q(): execution(* m(..)) && if(true==true); + +} |