diff options
author | aclement <aclement> | 2004-12-07 09:41:57 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-12-07 09:41:57 +0000 |
commit | 4273a2ddbf02819eb52e4fbbbe84a1e0ee4059ae (patch) | |
tree | acdce12069a3cc4126806ee3a8b15f3260a79313 /weaver | |
parent | c951bf5943413f8cead4888053ca5f77bef0e0ca (diff) | |
download | aspectj-4273a2ddbf02819eb52e4fbbbe84a1e0ee4059ae.tar.gz aspectj-4273a2ddbf02819eb52e4fbbbe84a1e0ee4059ae.zip |
Annotation Matching - test code
Diffstat (limited to 'weaver')
-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 |