From d67fa4a88535afb0e9cf44b816147e34fd8d461c Mon Sep 17 00:00:00 2001 From: aclement Date: Thu, 8 Apr 2010 21:16:12 +0000 Subject: 307120 --- tests/multiIncremental/pr307120_2/base/src/Advisor.java | 9 +++++++++ tests/multiIncremental/pr307120_2/base/src/Anno.java | 4 ++++ tests/multiIncremental/pr307120_2/base/src/Target.java | 4 ++++ tests/multiIncremental/pr307120_2/base/src/TargetAugmenter.java | 9 +++++++++ tests/multiIncremental/pr307120_2/inc1/src/TargetAugmenter.java | 9 +++++++++ 5 files changed, 35 insertions(+) create mode 100644 tests/multiIncremental/pr307120_2/base/src/Advisor.java create mode 100644 tests/multiIncremental/pr307120_2/base/src/Anno.java create mode 100644 tests/multiIncremental/pr307120_2/base/src/Target.java create mode 100644 tests/multiIncremental/pr307120_2/base/src/TargetAugmenter.java create mode 100644 tests/multiIncremental/pr307120_2/inc1/src/TargetAugmenter.java (limited to 'tests/multiIncremental') 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; + } +} -- cgit v1.2.3