From: aclement Date: Tue, 18 Mar 2008 15:57:55 +0000 (+0000) Subject: 145018 - moved testcode to 16 X-Git-Tag: V1_6_0rc1~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=739d01ffba57c23d643ae37f743d48abfce7f1a3;p=aspectj.git 145018 - moved testcode to 16 --- diff --git a/tests/bugs153/pr145018/Broken.aj b/tests/bugs153/pr145018/Broken.aj deleted file mode 100644 index adde2e9e4..000000000 --- a/tests/bugs153/pr145018/Broken.aj +++ /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 index 000000000..adde2e9e4 --- /dev/null +++ b/tests/bugs160/pr145018/Broken.aj @@ -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) { } +}