]> source.dussan.org Git - aspectj.git/commitdiff
145018 - moved testcode to 16
authoraclement <aclement>
Tue, 18 Mar 2008 15:57:55 +0000 (15:57 +0000)
committeraclement <aclement>
Tue, 18 Mar 2008 15:57:55 +0000 (15:57 +0000)
tests/bugs153/pr145018/Broken.aj [deleted file]
tests/bugs160/pr145018/Broken.aj [new file with mode: 0644]

diff --git a/tests/bugs153/pr145018/Broken.aj b/tests/bugs153/pr145018/Broken.aj
deleted file mode 100644 (file)
index adde2e9..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-import java.util.*;
-import org.aspectj.lang.annotation.*;
-
-@Aspect
-public class Broken {
-
-       @Pointcut("call(* someMethod(..)) && args(arg1) && if()")
-    public static boolean someMethod2if(int arg1) {
-      return true;
-    }
-
-    @Pointcut("cflow(execution(* doProcess(..) ) && args(*, args)) && this(SomeClass+) ")
-    public void inSomeClass2(Map args) {}
-
-    @After( "inSomeClass2(args) && someMethod2if(arg1) ")
-    public void deleteManagerInSomeClass2(Map args,int arg1) { }
-    
-    public static void main(String[] args) {
-               new SomeClass().doProcess("a",new HashMap());
-       }
-}
-
-class SomeClass {
-
-  public void doProcess(Object o, Map m) {
-    someMethod(1);
-  }
-
-  public void someMethod(int a) { }
-}
diff --git a/tests/bugs160/pr145018/Broken.aj b/tests/bugs160/pr145018/Broken.aj
new file mode 100644 (file)
index 0000000..adde2e9
--- /dev/null
@@ -0,0 +1,30 @@
+import java.util.*;
+import org.aspectj.lang.annotation.*;
+
+@Aspect
+public class Broken {
+
+       @Pointcut("call(* someMethod(..)) && args(arg1) && if()")
+    public static boolean someMethod2if(int arg1) {
+      return true;
+    }
+
+    @Pointcut("cflow(execution(* doProcess(..) ) && args(*, args)) && this(SomeClass+) ")
+    public void inSomeClass2(Map args) {}
+
+    @After( "inSomeClass2(args) && someMethod2if(arg1) ")
+    public void deleteManagerInSomeClass2(Map args,int arg1) { }
+    
+    public static void main(String[] args) {
+               new SomeClass().doProcess("a",new HashMap());
+       }
+}
+
+class SomeClass {
+
+  public void doProcess(Object o, Map m) {
+    someMethod(1);
+  }
+
+  public void someMethod(int a) { }
+}