summaryrefslogtreecommitdiffstats
path: root/tests/java5/annotations/binding/complexExample/C.java
diff options
context:
space:
mode:
authoraclement <aclement>2005-02-11 09:18:37 +0000
committeraclement <aclement>2005-02-11 09:18:37 +0000
commita3a53137d5acff4fce60b49c976acb6d7904e888 (patch)
treecfae21af7234c9a2f0ab5c776873b57fe2634933 /tests/java5/annotations/binding/complexExample/C.java
parent698ad9633f9ba28a8e5ebfbd219a4c4028e4f997 (diff)
downloadaspectj-a3a53137d5acff4fce60b49c976acb6d7904e888.tar.gz
aspectj-a3a53137d5acff4fce60b49c976acb6d7904e888.zip
Tests for 2 new annotation bugs: (1) Using the pattern '@Annotation *' in declare parents wasn't working (2) Using an annotation without importing it was causing the compiler to go bang.
Diffstat (limited to 'tests/java5/annotations/binding/complexExample/C.java')
-rw-r--r--tests/java5/annotations/binding/complexExample/C.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/java5/annotations/binding/complexExample/C.java b/tests/java5/annotations/binding/complexExample/C.java
new file mode 100644
index 000000000..8d8827ba9
--- /dev/null
+++ b/tests/java5/annotations/binding/complexExample/C.java
@@ -0,0 +1,13 @@
+package g.h.i;
+import d.e.f.*;
+
+@Color("black")
+public class C {
+
+ public static void main(String []argv) {
+ if (!(new C() instanceof java.io.Serializable))
+ throw new RuntimeException("C should be serializable, done via decp");
+ }
+
+ public void c() { System.err.println("g.h.i.C.c running");}
+}