diff options
author | aclement <aclement> | 2010-04-08 21:16:12 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-04-08 21:16:12 +0000 |
commit | d67fa4a88535afb0e9cf44b816147e34fd8d461c (patch) | |
tree | bc1ef8fa49d4f0b68fdf355195488d872ad93214 /tests/multiIncremental/pr307120_2 | |
parent | 40604fc14bc345ce828f1dcb3d8b285540312299 (diff) | |
download | aspectj-d67fa4a88535afb0e9cf44b816147e34fd8d461c.tar.gz aspectj-d67fa4a88535afb0e9cf44b816147e34fd8d461c.zip |
307120
Diffstat (limited to 'tests/multiIncremental/pr307120_2')
5 files changed, 35 insertions, 0 deletions
diff --git a/tests/multiIncremental/pr307120_2/base/src/Advisor.java b/tests/multiIncremental/pr307120_2/base/src/Advisor.java new file mode 100644 index 000000000..61b7f5dc4 --- /dev/null +++ b/tests/multiIncremental/pr307120_2/base/src/Advisor.java @@ -0,0 +1,9 @@ +aspect Advisor { + Object around(Object o): get(@Anno * *) && this(o) { + return proceed(o); + } + + Object around(Object o,Object newval): set(@Anno * *) && this(o) && args(newval) { + return proceed(o,newval); + } +} diff --git a/tests/multiIncremental/pr307120_2/base/src/Anno.java b/tests/multiIncremental/pr307120_2/base/src/Anno.java new file mode 100644 index 000000000..148fd7c4c --- /dev/null +++ b/tests/multiIncremental/pr307120_2/base/src/Anno.java @@ -0,0 +1,4 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +@interface Anno {} diff --git a/tests/multiIncremental/pr307120_2/base/src/Target.java b/tests/multiIncremental/pr307120_2/base/src/Target.java new file mode 100644 index 000000000..dfd2ba34f --- /dev/null +++ b/tests/multiIncremental/pr307120_2/base/src/Target.java @@ -0,0 +1,4 @@ +class Target { + @Anno + private String it; +} diff --git a/tests/multiIncremental/pr307120_2/base/src/TargetAugmenter.java b/tests/multiIncremental/pr307120_2/base/src/TargetAugmenter.java new file mode 100644 index 000000000..053796796 --- /dev/null +++ b/tests/multiIncremental/pr307120_2/base/src/TargetAugmenter.java @@ -0,0 +1,9 @@ +privileged aspect TargetAugmenter { + public String Target.getIt() { + return it; + } + + public void Target.setIt(String newit) { + this.it = newit; + } +} diff --git a/tests/multiIncremental/pr307120_2/inc1/src/TargetAugmenter.java b/tests/multiIncremental/pr307120_2/inc1/src/TargetAugmenter.java new file mode 100644 index 000000000..053796796 --- /dev/null +++ b/tests/multiIncremental/pr307120_2/inc1/src/TargetAugmenter.java @@ -0,0 +1,9 @@ +privileged aspect TargetAugmenter { + public String Target.getIt() { + return it; + } + + public void Target.setIt(String newit) { + this.it = newit; + } +} |