diff options
author | aclement <aclement> | 2009-05-15 06:19:20 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-05-15 06:19:20 +0000 |
commit | 506f9187da625a18bc135f9821881b05c53f1871 (patch) | |
tree | ca8d09b00077d333e51666e47214b0c8b284c9b7 /tests/multiIncremental | |
parent | f079f5ee18dbb68929172557568d0d95d25f7af5 (diff) | |
download | aspectj-506f9187da625a18bc135f9821881b05c53f1871.tar.gz aspectj-506f9187da625a18bc135f9821881b05c53f1871.zip |
276399: test and fix: annotation matching, default package and source folder
Diffstat (limited to 'tests/multiIncremental')
-rw-r--r-- | tests/multiIncremental/pr276399/base/src/C.java | 12 | ||||
-rw-r--r-- | tests/multiIncremental/pr276399/base/src/X.aj | 20 | ||||
-rw-r--r-- | tests/multiIncremental/pr276399/inc1/src/X.aj | 20 |
3 files changed, 52 insertions, 0 deletions
diff --git a/tests/multiIncremental/pr276399/base/src/C.java b/tests/multiIncremental/pr276399/base/src/C.java new file mode 100644 index 000000000..9f29511d4 --- /dev/null +++ b/tests/multiIncremental/pr276399/base/src/C.java @@ -0,0 +1,12 @@ +// +//public class C { +// +//// public C() {System.out.println("a"); } +// +// public C(String s) {} +// +// public static void main(String[] args) { +// new C(); +// } +//} + diff --git a/tests/multiIncremental/pr276399/base/src/X.aj b/tests/multiIncremental/pr276399/base/src/X.aj new file mode 100644 index 000000000..39adcbf1a --- /dev/null +++ b/tests/multiIncremental/pr276399/base/src/X.aj @@ -0,0 +1,20 @@ +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +@interface WebService {} + +@WebService +class Foo { + + public Foo() {} + +} +aspect X { + + after(): execution(*.new(..)) && @within(WebService) { + + } +} + + diff --git a/tests/multiIncremental/pr276399/inc1/src/X.aj b/tests/multiIncremental/pr276399/inc1/src/X.aj new file mode 100644 index 000000000..8d53d83d2 --- /dev/null +++ b/tests/multiIncremental/pr276399/inc1/src/X.aj @@ -0,0 +1,20 @@ +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; + +@Retention(RetentionPolicy.RUNTIME) +@interface WebService {} + +//@WebService +class Foo { + + public Foo() {} + +} +aspect X { + + after(): execution(*.new(..)) && @within(WebService) { + + } +} + + |