diff options
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); + +} |