--- /dev/null
+package java.lang.annotation;
+
+// Fake class we can use in the absence of Java5
+public class Annotation {
+}
--- /dev/null
+public aspect AnnotationAspect01 {\r
+\r
+ // ITDC - not allowed\r
+ public SimpleAnnotation.new(int i) {\r
+ }\r
+\r
+ // ITDM - not allowed\r
+ public int SimpleAnnotation.newMember(int i) {\r
+ return 75346;\r
+ }\r
+\r
+ // ITDF - not allowed\r
+ public int SimpleAnnotation.newField;\r
+}\r
--- /dev/null
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+public @interface SimpleAnnotation {
+ int id();
+ String fruit() default "bananas";
+}
--- /dev/null
+<project name="Java 5 compilation of test source" default="default" basedir=".">
+
+ <target name="default">
+ <delete dir="output" failonerror="false"/>
+ <mkdir dir="output"/>
+ <javac destdir="output" debug="on" srcdir="." includes="*.java"/>
+ <zip file="testcode.jar" basedir="output" includes="*"/>
+ <delete dir="output"/>
+ </target>
+
+</project>