diff options
author | aclement <aclement> | 2005-11-03 15:24:48 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-03 15:24:48 +0000 |
commit | 6e423f15e29896cf3be78b37c72c3b422e171c71 (patch) | |
tree | ee60af23d23ad0c3b4ec21f9ce4cf169549c2f73 /tests/bugs150/pr86903 | |
parent | 206180218acec863d08939925c7012243b95d55b (diff) | |
download | aspectj-6e423f15e29896cf3be78b37c72c3b422e171c71.tar.gz aspectj-6e423f15e29896cf3be78b37c72c3b422e171c71.zip |
test and fix for 86903
Diffstat (limited to 'tests/bugs150/pr86903')
-rw-r--r-- | tests/bugs150/pr86903/BadWormhole.java | 11 | ||||
-rw-r--r-- | tests/bugs150/pr86903/GenericService.java | 4 | ||||
-rw-r--r-- | tests/bugs150/pr86903/Main.java | 6 | ||||
-rw-r--r-- | tests/bugs150/pr86903/Service.java | 8 |
4 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs150/pr86903/BadWormhole.java b/tests/bugs150/pr86903/BadWormhole.java new file mode 100644 index 000000000..6d14b4980 --- /dev/null +++ b/tests/bugs150/pr86903/BadWormhole.java @@ -0,0 +1,11 @@ + +aspect BadWormhole { + + pointcut isDynamicService(Main mm,Service s): + cflowbelow(this(mm)) && + if(true==true) && + this(s); + + //before(Main mm,Service s): isDynamicService(mm,s) {} + before(Service s): isDynamicService(*,s) {} +} diff --git a/tests/bugs150/pr86903/GenericService.java b/tests/bugs150/pr86903/GenericService.java new file mode 100644 index 000000000..3c6950875 --- /dev/null +++ b/tests/bugs150/pr86903/GenericService.java @@ -0,0 +1,4 @@ + +public interface GenericService { + public abstract void setContext(String localCtx); +} diff --git a/tests/bugs150/pr86903/Main.java b/tests/bugs150/pr86903/Main.java new file mode 100644 index 000000000..7122a2925 --- /dev/null +++ b/tests/bugs150/pr86903/Main.java @@ -0,0 +1,6 @@ + +public class Main { + public static void main(String []argv) { + new Service().setContext("foo"); + } +} diff --git a/tests/bugs150/pr86903/Service.java b/tests/bugs150/pr86903/Service.java new file mode 100644 index 000000000..635172bd5 --- /dev/null +++ b/tests/bugs150/pr86903/Service.java @@ -0,0 +1,8 @@ + +public class Service implements GenericService { + String srvContext = "none"; + + public void setContext(String localCtx) { + this.srvContext=localCtx; + } +} |