diff options
-rw-r--r-- | weaver/testdata/AnnotatedClass.java | 10 | ||||
-rw-r--r-- | weaver/testdata/SimpleAnnotation.java | 7 | ||||
-rw-r--r-- | weaver/testdata/build-15.xml | 11 | ||||
-rw-r--r-- | weaver/testdata/testcode.jar | bin | 0 -> 817 bytes |
4 files changed, 28 insertions, 0 deletions
diff --git a/weaver/testdata/AnnotatedClass.java b/weaver/testdata/AnnotatedClass.java new file mode 100644 index 000000000..0c9429bde --- /dev/null +++ b/weaver/testdata/AnnotatedClass.java @@ -0,0 +1,10 @@ +@SimpleAnnotation(id=2) +public class AnnotatedClass { + + @SimpleAnnotation(id=3) + public void m1() { } + + @SimpleAnnotation(id=4) + int i; +} + diff --git a/weaver/testdata/SimpleAnnotation.java b/weaver/testdata/SimpleAnnotation.java new file mode 100644 index 000000000..5b4303755 --- /dev/null +++ b/weaver/testdata/SimpleAnnotation.java @@ -0,0 +1,7 @@ +import java.lang.annotation.*; + +@Retention(RetentionPolicy.RUNTIME) +public @interface SimpleAnnotation { + int id(); + String fruit() default "bananas"; +} diff --git a/weaver/testdata/build-15.xml b/weaver/testdata/build-15.xml new file mode 100644 index 000000000..d38a7705f --- /dev/null +++ b/weaver/testdata/build-15.xml @@ -0,0 +1,11 @@ +<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> diff --git a/weaver/testdata/testcode.jar b/weaver/testdata/testcode.jar Binary files differnew file mode 100644 index 000000000..45e0d8e78 --- /dev/null +++ b/weaver/testdata/testcode.jar |