From: aclement Date: Wed, 24 Sep 2008 20:06:27 +0000 (+0000) Subject: 247742:c27 X-Git-Tag: V1_6_2~36 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=15e3a298d2b4d9db6441c42f65f42bbe0a1c5f41;p=aspectj.git 247742:c27 --- 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(..)) {} +} +