diff options
author | aclement <aclement> | 2008-09-24 20:06:27 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-09-24 20:06:27 +0000 |
commit | 15e3a298d2b4d9db6441c42f65f42bbe0a1c5f41 (patch) | |
tree | 02a7f71bc64d691379f0d4f700c28c9c0fd1dc2a /tests | |
parent | c8471429684ecfa9294075fed223568f92673efd (diff) | |
download | aspectj-15e3a298d2b4d9db6441c42f65f42bbe0a1c5f41.tar.gz aspectj-15e3a298d2b4d9db6441c42f65f42bbe0a1c5f41.zip |
247742:c27
Diffstat (limited to 'tests')
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(..)) {} +} + |