aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoraclement <aclement>2008-08-28 02:29:29 +0000
committeraclement <aclement>2008-08-28 02:29:29 +0000
commit5077a5824f695906fc635c36e42af1c9d960ffca (patch)
tree05b3080bb8713d37362ea6c1082cddcb4780626d /tests/bugs153
parent5498d0a84762c437b6bff443d6cc1e1e5c914dce (diff)
downloadaspectj-5077a5824f695906fc635c36e42af1c9d960ffca.tar.gz
aspectj-5077a5824f695906fc635c36e42af1c9d960ffca.zip
245307: test and fix: Aspected annotations cause ajdoc to generate ClassCastExceptions
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/Annotation/A.java7
-rw-r--r--tests/bugs153/Annotation/Anno.aj5
-rw-r--r--tests/bugs153/Annotation/C.java3
3 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs153/Annotation/A.java b/tests/bugs153/Annotation/A.java
new file mode 100644
index 000000000..b74335b9d
--- /dev/null
+++ b/tests/bugs153/Annotation/A.java
@@ -0,0 +1,7 @@
+package annotation;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Target;
+
+@Target(ElementType.TYPE)
+public @interface A { }
diff --git a/tests/bugs153/Annotation/Anno.aj b/tests/bugs153/Annotation/Anno.aj
new file mode 100644
index 000000000..acfdae4b9
--- /dev/null
+++ b/tests/bugs153/Annotation/Anno.aj
@@ -0,0 +1,5 @@
+import annotation.A;
+
+public aspect Anno {
+ declare @type: C : @A;
+}
diff --git a/tests/bugs153/Annotation/C.java b/tests/bugs153/Annotation/C.java
new file mode 100644
index 000000000..7fe8ac4ab
--- /dev/null
+++ b/tests/bugs153/Annotation/C.java
@@ -0,0 +1,3 @@
+// import
+public class C {
+}