diff options
author | aclement <aclement> | 2008-03-18 15:57:55 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-03-18 15:57:55 +0000 |
commit | 739d01ffba57c23d643ae37f743d48abfce7f1a3 (patch) | |
tree | 1b662cfca46c215aca46bb921ce0811edccc8c1b /tests/bugs160 | |
parent | 967ea6dcfe7dae7dc8d2c42fc2694047bc622ff7 (diff) | |
download | aspectj-739d01ffba57c23d643ae37f743d48abfce7f1a3.tar.gz aspectj-739d01ffba57c23d643ae37f743d48abfce7f1a3.zip |
145018 - moved testcode to 16
Diffstat (limited to 'tests/bugs160')
-rw-r--r-- | tests/bugs160/pr145018/Broken.aj | 30 |
1 files changed, 30 insertions, 0 deletions
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) { } +} |