aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs165
diff options
context:
space:
mode:
authoraclement <aclement>2009-05-22 19:35:20 +0000
committeraclement <aclement>2009-05-22 19:35:20 +0000
commit5f15c2a8e4afbf5aa7d554142732da58b5cec5f2 (patch)
treea12f0ba8fadb240997d111785b154efdd14182d5 /tests/bugs165
parentd32d58db8f91e29e61843afc9107a798f07901e9 (diff)
downloadaspectj-5f15c2a8e4afbf5aa7d554142732da58b5cec5f2.tar.gz
aspectj-5f15c2a8e4afbf5aa7d554142732da58b5cec5f2.zip
277508: more stable if_ method names
Diffstat (limited to 'tests/bugs165')
-rw-r--r--tests/bugs165/pr277508/Basic.java20
-rw-r--r--tests/bugs165/pr277508/Basic2.java20
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);
+
+}