diff options
author | aclement <aclement> | 2005-12-02 15:38:58 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-12-02 15:38:58 +0000 |
commit | 533d367839276941046bb119ea2e0f3f873fd642 (patch) | |
tree | d3078127c64dec9caea15696ce1beebba05c24a8 /tests | |
parent | 2bed6a1a75aedc7ae198fae0eb22485663109f2e (diff) | |
download | aspectj-533d367839276941046bb119ea2e0f3f873fd642.tar.gz aspectj-533d367839276941046bb119ea2e0f3f873fd642.zip |
fixing the unfixable: 117882 incremental dec @type: testcode from Helen.
Diffstat (limited to 'tests')
9 files changed, 71 insertions, 0 deletions
diff --git a/tests/multiIncremental/PR117882/base/src/pack/A.aj b/tests/multiIncremental/PR117882/base/src/pack/A.aj new file mode 100644 index 000000000..cbbad2d9d --- /dev/null +++ b/tests/multiIncremental/PR117882/base/src/pack/A.aj @@ -0,0 +1,7 @@ +package pack; + +public aspect A { + + declare @type : C : @Annotation; + +} diff --git a/tests/multiIncremental/PR117882/base/src/pack/Annotation.java b/tests/multiIncremental/PR117882/base/src/pack/Annotation.java new file mode 100644 index 000000000..49a36d407 --- /dev/null +++ b/tests/multiIncremental/PR117882/base/src/pack/Annotation.java @@ -0,0 +1,5 @@ +package pack; + +public @interface Annotation { + +} diff --git a/tests/multiIncremental/PR117882/base/src/pack/C.java b/tests/multiIncremental/PR117882/base/src/pack/C.java new file mode 100644 index 000000000..45c76fa1d --- /dev/null +++ b/tests/multiIncremental/PR117882/base/src/pack/C.java @@ -0,0 +1,7 @@ +package pack; + +public class C { + + public void amethod() {} + +} diff --git a/tests/multiIncremental/PR117882/inc1/src/pack/A.aj b/tests/multiIncremental/PR117882/inc1/src/pack/A.aj new file mode 100644 index 000000000..973f8238c --- /dev/null +++ b/tests/multiIncremental/PR117882/inc1/src/pack/A.aj @@ -0,0 +1,7 @@ +package pack; +//comment +public aspect A { + + declare @type : C : @Annotation; + +} diff --git a/tests/multiIncremental/PR117882_2/base/src/pack/A.aj b/tests/multiIncremental/PR117882_2/base/src/pack/A.aj new file mode 100644 index 000000000..cbbad2d9d --- /dev/null +++ b/tests/multiIncremental/PR117882_2/base/src/pack/A.aj @@ -0,0 +1,7 @@ +package pack; + +public aspect A { + + declare @type : C : @Annotation; + +} diff --git a/tests/multiIncremental/PR117882_2/base/src/pack/Annotation.java b/tests/multiIncremental/PR117882_2/base/src/pack/Annotation.java new file mode 100644 index 000000000..8df9e8b6d --- /dev/null +++ b/tests/multiIncremental/PR117882_2/base/src/pack/Annotation.java @@ -0,0 +1,8 @@ +package pack; + +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +public @interface Annotation { + +} diff --git a/tests/multiIncremental/PR117882_2/base/src/pack/C.java b/tests/multiIncremental/PR117882_2/base/src/pack/C.java new file mode 100644 index 000000000..4a7b4b994 --- /dev/null +++ b/tests/multiIncremental/PR117882_2/base/src/pack/C.java @@ -0,0 +1,5 @@ +package pack; + +public class C { + +} diff --git a/tests/multiIncremental/PR117882_2/base/src/pack/I.java b/tests/multiIncremental/PR117882_2/base/src/pack/I.java new file mode 100644 index 000000000..e9d63258e --- /dev/null +++ b/tests/multiIncremental/PR117882_2/base/src/pack/I.java @@ -0,0 +1,7 @@ +package pack; + +public interface I { + + public void method(); + +} diff --git a/tests/multiIncremental/PR117882_2/inc1/src/pack/A.aj b/tests/multiIncremental/PR117882_2/inc1/src/pack/A.aj new file mode 100644 index 000000000..1515c463b --- /dev/null +++ b/tests/multiIncremental/PR117882_2/inc1/src/pack/A.aj @@ -0,0 +1,18 @@ +package pack; + +public aspect A { + + declare @type : C : @Annotation; + + declare parents : (@Annotation *) implements I; + + public void I.method() { + } + + public static void main(String []argv) { + new C().method(); + if (C.class.getAnnotation(pack.Annotation.class)==null) + throw new RuntimeException("Class C should have @Annotation on it"); + } + +} |