summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/multiIncremental/AspectPathOne/base/src/Asp2.java17
-rw-r--r--tests/multiIncremental/AspectPathOne/base/src/p/Asp.java6
-rw-r--r--tests/multiIncremental/AspectPathTwo/base/src/C.java7
-rw-r--r--tests/multiIncremental/BrokenHandles/base/src/ErrorAspect.java13
-rw-r--r--tests/multiIncremental/BrokenHandles/base/src/GetInfo.java7
-rw-r--r--tests/multiIncremental/CodeHandles/base/src/Handles.aj16
6 files changed, 66 insertions, 0 deletions
diff --git a/tests/multiIncremental/AspectPathOne/base/src/Asp2.java b/tests/multiIncremental/AspectPathOne/base/src/Asp2.java
new file mode 100644
index 000000000..dcaf6ca92
--- /dev/null
+++ b/tests/multiIncremental/AspectPathOne/base/src/Asp2.java
@@ -0,0 +1,17 @@
+public aspect Asp2 {
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ before(): execution(* fo*(..)) {}
+}
diff --git a/tests/multiIncremental/AspectPathOne/base/src/p/Asp.java b/tests/multiIncremental/AspectPathOne/base/src/p/Asp.java
new file mode 100644
index 000000000..cd47e62ea
--- /dev/null
+++ b/tests/multiIncremental/AspectPathOne/base/src/p/Asp.java
@@ -0,0 +1,6 @@
+package pkg;
+
+public aspect Asp {
+
+ before(): execution(* fo*(..)) {}
+}
diff --git a/tests/multiIncremental/AspectPathTwo/base/src/C.java b/tests/multiIncremental/AspectPathTwo/base/src/C.java
new file mode 100644
index 000000000..151e7ae62
--- /dev/null
+++ b/tests/multiIncremental/AspectPathTwo/base/src/C.java
@@ -0,0 +1,7 @@
+public class C {
+ public static void main(String []argv) {
+ new C().foo();
+ }
+
+ public void foo() {}
+}
diff --git a/tests/multiIncremental/BrokenHandles/base/src/ErrorAspect.java b/tests/multiIncremental/BrokenHandles/base/src/ErrorAspect.java
new file mode 100644
index 000000000..3dfad32db
--- /dev/null
+++ b/tests/multiIncremental/BrokenHandles/base/src/ErrorAspect.java
@@ -0,0 +1,13 @@
+package p;
+
+import java.util.ArrayList;
+
+public class ErrorAspect {
+ ArrayList arr = new ArrayList() {
+ public boolean add(Object o) {
+ doNothing();
+ super.add(o);
+ };
+ }
+}
+
diff --git a/tests/multiIncremental/BrokenHandles/base/src/GetInfo.java b/tests/multiIncremental/BrokenHandles/base/src/GetInfo.java
new file mode 100644
index 000000000..7915a341a
--- /dev/null
+++ b/tests/multiIncremental/BrokenHandles/base/src/GetInfo.java
@@ -0,0 +1,7 @@
+package p;
+
+aspect GetInfo {
+ declare warning : set(int Demo.x) : "field set";
+ declare warning : set(int Demo.x) : "field set";
+ declare parents : Demo implements Serializable;
+}
diff --git a/tests/multiIncremental/CodeHandles/base/src/Handles.aj b/tests/multiIncremental/CodeHandles/base/src/Handles.aj
new file mode 100644
index 000000000..60d7b4d65
--- /dev/null
+++ b/tests/multiIncremental/CodeHandles/base/src/Handles.aj
@@ -0,0 +1,16 @@
+package spacewar;
+
+ class C {
+
+ public void m() {
+ foo(12);
+ foo(14);
+ }
+
+ public void foo(int i) {}
+}
+
+aspect X {
+ before(): call(* foo(..)) {}
+}
+