]> source.dussan.org Git - aspectj.git/commitdiff
fixing the unfixable: 117882 incremental dec @type: testcode from Helen.
authoraclement <aclement>
Fri, 2 Dec 2005 15:38:58 +0000 (15:38 +0000)
committeraclement <aclement>
Fri, 2 Dec 2005 15:38:58 +0000 (15:38 +0000)
tests/multiIncremental/PR117882/base/src/pack/A.aj [new file with mode: 0644]
tests/multiIncremental/PR117882/base/src/pack/Annotation.java [new file with mode: 0644]
tests/multiIncremental/PR117882/base/src/pack/C.java [new file with mode: 0644]
tests/multiIncremental/PR117882/inc1/src/pack/A.aj [new file with mode: 0644]
tests/multiIncremental/PR117882_2/base/src/pack/A.aj [new file with mode: 0644]
tests/multiIncremental/PR117882_2/base/src/pack/Annotation.java [new file with mode: 0644]
tests/multiIncremental/PR117882_2/base/src/pack/C.java [new file with mode: 0644]
tests/multiIncremental/PR117882_2/base/src/pack/I.java [new file with mode: 0644]
tests/multiIncremental/PR117882_2/inc1/src/pack/A.aj [new file with mode: 0644]

diff --git a/tests/multiIncremental/PR117882/base/src/pack/A.aj b/tests/multiIncremental/PR117882/base/src/pack/A.aj
new file mode 100644 (file)
index 0000000..cbbad2d
--- /dev/null
@@ -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 (file)
index 0000000..49a36d4
--- /dev/null
@@ -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 (file)
index 0000000..45c76fa
--- /dev/null
@@ -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 (file)
index 0000000..973f823
--- /dev/null
@@ -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 (file)
index 0000000..cbbad2d
--- /dev/null
@@ -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 (file)
index 0000000..8df9e8b
--- /dev/null
@@ -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 (file)
index 0000000..4a7b4b9
--- /dev/null
@@ -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 (file)
index 0000000..e9d6325
--- /dev/null
@@ -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 (file)
index 0000000..1515c46
--- /dev/null
@@ -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");
+       }
+
+}