aboutsummaryrefslogtreecommitdiffstats
path: root/tests/multiIncremental
diff options
context:
space:
mode:
authoraclement <aclement>2010-04-23 00:10:16 +0000
committeraclement <aclement>2010-04-23 00:10:16 +0000
commitcee6b8b8cb6c7f4e6501d1cb054d6586f7ff128b (patch)
tree7f6ab9827777b5d0273061bf40b18e0ecadfafe6 /tests/multiIncremental
parent0ca15bb18dde892f599a1b2c8ae06cbcda847c7f (diff)
downloadaspectj-cee6b8b8cb6c7f4e6501d1cb054d6586f7ff128b.tar.gz
aspectj-cee6b8b8cb6c7f4e6501d1cb054d6586f7ff128b.zip
307120: more damn fixes
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r--tests/multiIncremental/pr307120_3/base/src/Advisor.java9
-rw-r--r--tests/multiIncremental/pr307120_3/base/src/Anno.java4
-rw-r--r--tests/multiIncremental/pr307120_3/base/src/Target.java4
-rw-r--r--tests/multiIncremental/pr307120_3/base/src/TargetAugmenter.java9
-rw-r--r--tests/multiIncremental/pr307120_3/inc1/src/TargetAugmenter.java9
-rw-r--r--tests/multiIncremental/pr307120_4/base/src/Advisor.java9
-rw-r--r--tests/multiIncremental/pr307120_4/base/src/Anno.java4
-rw-r--r--tests/multiIncremental/pr307120_4/base/src/Target.java4
-rw-r--r--tests/multiIncremental/pr307120_4/base/src/TargetAugmenter.java9
-rw-r--r--tests/multiIncremental/pr307120_4/inc1/src/TargetAugmenter.java9
10 files changed, 70 insertions, 0 deletions
diff --git a/tests/multiIncremental/pr307120_3/base/src/Advisor.java b/tests/multiIncremental/pr307120_3/base/src/Advisor.java
new file mode 100644
index 000000000..96231dd88
--- /dev/null
+++ b/tests/multiIncremental/pr307120_3/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_3/base/src/Anno.java b/tests/multiIncremental/pr307120_3/base/src/Anno.java
new file mode 100644
index 000000000..148fd7c4c
--- /dev/null
+++ b/tests/multiIncremental/pr307120_3/base/src/Anno.java
@@ -0,0 +1,4 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {}
diff --git a/tests/multiIncremental/pr307120_3/base/src/Target.java b/tests/multiIncremental/pr307120_3/base/src/Target.java
new file mode 100644
index 000000000..dfd2ba34f
--- /dev/null
+++ b/tests/multiIncremental/pr307120_3/base/src/Target.java
@@ -0,0 +1,4 @@
+class Target {
+ @Anno
+ private String it;
+}
diff --git a/tests/multiIncremental/pr307120_3/base/src/TargetAugmenter.java b/tests/multiIncremental/pr307120_3/base/src/TargetAugmenter.java
new file mode 100644
index 000000000..be2965c0b
--- /dev/null
+++ b/tests/multiIncremental/pr307120_3/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_3/inc1/src/TargetAugmenter.java b/tests/multiIncremental/pr307120_3/inc1/src/TargetAugmenter.java
new file mode 100644
index 000000000..be2965c0b
--- /dev/null
+++ b/tests/multiIncremental/pr307120_3/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;
+ }
+}
diff --git a/tests/multiIncremental/pr307120_4/base/src/Advisor.java b/tests/multiIncremental/pr307120_4/base/src/Advisor.java
new file mode 100644
index 000000000..292ea4721
--- /dev/null
+++ b/tests/multiIncremental/pr307120_4/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(* *) && !set(@Anno * *) && this(o) && args(newval) {
+ return proceed(o,newval);
+ }
+}
diff --git a/tests/multiIncremental/pr307120_4/base/src/Anno.java b/tests/multiIncremental/pr307120_4/base/src/Anno.java
new file mode 100644
index 000000000..148fd7c4c
--- /dev/null
+++ b/tests/multiIncremental/pr307120_4/base/src/Anno.java
@@ -0,0 +1,4 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {}
diff --git a/tests/multiIncremental/pr307120_4/base/src/Target.java b/tests/multiIncremental/pr307120_4/base/src/Target.java
new file mode 100644
index 000000000..dfd2ba34f
--- /dev/null
+++ b/tests/multiIncremental/pr307120_4/base/src/Target.java
@@ -0,0 +1,4 @@
+class Target {
+ @Anno
+ private String it;
+}
diff --git a/tests/multiIncremental/pr307120_4/base/src/TargetAugmenter.java b/tests/multiIncremental/pr307120_4/base/src/TargetAugmenter.java
new file mode 100644
index 000000000..be2965c0b
--- /dev/null
+++ b/tests/multiIncremental/pr307120_4/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_4/inc1/src/TargetAugmenter.java b/tests/multiIncremental/pr307120_4/inc1/src/TargetAugmenter.java
new file mode 100644
index 000000000..be2965c0b
--- /dev/null
+++ b/tests/multiIncremental/pr307120_4/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;
+ }
+}