]> source.dussan.org Git - aspectj.git/commitdiff
247742:c27
authoraclement <aclement>
Wed, 24 Sep 2008 20:06:27 +0000 (20:06 +0000)
committeraclement <aclement>
Wed, 24 Sep 2008 20:06:27 +0000 (20:06 +0000)
tests/multiIncremental/AspectPathOne/base/src/Asp2.java [new file with mode: 0644]
tests/multiIncremental/AspectPathOne/base/src/p/Asp.java [new file with mode: 0644]
tests/multiIncremental/AspectPathTwo/base/src/C.java [new file with mode: 0644]
tests/multiIncremental/BrokenHandles/base/src/ErrorAspect.java [new file with mode: 0644]
tests/multiIncremental/BrokenHandles/base/src/GetInfo.java [new file with mode: 0644]
tests/multiIncremental/CodeHandles/base/src/Handles.aj [new file with mode: 0644]

diff --git a/tests/multiIncremental/AspectPathOne/base/src/Asp2.java b/tests/multiIncremental/AspectPathOne/base/src/Asp2.java
new file mode 100644 (file)
index 0000000..dcaf6ca
--- /dev/null
@@ -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 (file)
index 0000000..cd47e62
--- /dev/null
@@ -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 (file)
index 0000000..151e7ae
--- /dev/null
@@ -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 (file)
index 0000000..3dfad32
--- /dev/null
@@ -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 (file)
index 0000000..7915a34
--- /dev/null
@@ -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 (file)
index 0000000..60d7b4d
--- /dev/null
@@ -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(..)) {}
+}
+