summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2004-12-02 10:41:41 +0000
committeraclement <aclement>2004-12-02 10:41:41 +0000
commit01ffc36816f112b7bd9ec25cf842c598cb58fb87 (patch)
tree7bb81b99336344c6581e9677a06faa90c798b941 /tests
parent6739dd5b3d1c549e9b9b9b08e6a96f0688901df9 (diff)
downloadaspectj-01ffc36816f112b7bd9ec25cf842c598cb58fb87.tar.gz
aspectj-01ffc36816f112b7bd9ec25cf842c598cb58fb87.zip
72766 - enum testdata
Diffstat (limited to 'tests')
-rw-r--r--tests/java5/enums/Enum.java3
-rw-r--r--tests/java5/enums/EnumAspect01.aj4
-rw-r--r--tests/java5/enums/EnumAspect01.jarbin0 -> 640 bytes
-rw-r--r--tests/java5/enums/EnumAspect02.aj7
-rw-r--r--tests/java5/enums/EnumAspect03.aj7
-rw-r--r--tests/java5/enums/SimpleEnum.java1
-rw-r--r--tests/java5/enums/build.xml22
-rw-r--r--tests/java5/enums/testcode.jarbin0 -> 1385 bytes
8 files changed, 44 insertions, 0 deletions
diff --git a/tests/java5/enums/Enum.java b/tests/java5/enums/Enum.java
new file mode 100644
index 000000000..e8e0e72c0
--- /dev/null
+++ b/tests/java5/enums/Enum.java
@@ -0,0 +1,3 @@
+package java.lang;
+public class Enum {
+}
diff --git a/tests/java5/enums/EnumAspect01.aj b/tests/java5/enums/EnumAspect01.aj
new file mode 100644
index 000000000..1ea3264e3
--- /dev/null
+++ b/tests/java5/enums/EnumAspect01.aj
@@ -0,0 +1,4 @@
+public aspect EnumAspect01 {
+ public SimpleEnum.new(int i) {
+ }
+}
diff --git a/tests/java5/enums/EnumAspect01.jar b/tests/java5/enums/EnumAspect01.jar
new file mode 100644
index 000000000..2b1e16c80
--- /dev/null
+++ b/tests/java5/enums/EnumAspect01.jar
Binary files differ
diff --git a/tests/java5/enums/EnumAspect02.aj b/tests/java5/enums/EnumAspect02.aj
new file mode 100644
index 000000000..33a7accc8
--- /dev/null
+++ b/tests/java5/enums/EnumAspect02.aj
@@ -0,0 +1,7 @@
+public aspect EnumAspect02 {
+ public int SimpleEnum.newMember(int i) {
+ return 75346;
+ }
+
+ public int SimpleEnum.newField;
+}
diff --git a/tests/java5/enums/EnumAspect03.aj b/tests/java5/enums/EnumAspect03.aj
new file mode 100644
index 000000000..df5cc375b
--- /dev/null
+++ b/tests/java5/enums/EnumAspect03.aj
@@ -0,0 +1,7 @@
+public aspect EnumAspect03 {
+ declare parents: SimpleEnum implements java.io.Serializable;
+
+ class C extends Enum {
+ }
+ declare parents: SimpleEnum extends C;
+}
diff --git a/tests/java5/enums/SimpleEnum.java b/tests/java5/enums/SimpleEnum.java
new file mode 100644
index 000000000..2df536880
--- /dev/null
+++ b/tests/java5/enums/SimpleEnum.java
@@ -0,0 +1 @@
+public enum SimpleEnum { Red,Orange,Yellow,Green,Blue,Indigo,Violet };
diff --git a/tests/java5/enums/build.xml b/tests/java5/enums/build.xml
new file mode 100644
index 000000000..2d71e22c7
--- /dev/null
+++ b/tests/java5/enums/build.xml
@@ -0,0 +1,22 @@
+<project name="Java 5 compilation of test source" default="default" basedir=".">
+
+ <taskdef resource="org/aspectj/tools/ant/taskdefs/aspectjTaskdefs.properties">
+ <classpath>
+ <pathelement location="c:/aspectj1.2/lib/aspectjtools.jar"/>
+ </classpath>
+ </taskdef>
+
+
+ <target name="default" depends="aspect_jars">
+ <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>
+
+ <target name="aspect_jars">
+ <iajc outjar="EnumAspect01.jar" srcdir="." includes="EnumAspect01.aj" classpath="c:/aspectj1.2/lib/aspectjrt.jar"/>
+ </target>
+
+</project>
diff --git a/tests/java5/enums/testcode.jar b/tests/java5/enums/testcode.jar
new file mode 100644
index 000000000..2322769d5
--- /dev/null
+++ b/tests/java5/enums/testcode.jar
Binary files differ