diff options
author | aclement <aclement> | 2004-12-10 13:30:30 +0000 |
---|---|---|
committer | aclement <aclement> | 2004-12-10 13:30:30 +0000 |
commit | 873e84edecc5609bafd3b3ab82d7c37f4585149d (patch) | |
tree | 5f3c26663962d3ed92aaaccd7aae1e970e1ab1e9 /tests | |
parent | 7228f3d18d71496a4089a7d5807b3d234124dd7b (diff) | |
download | aspectj-873e84edecc5609bafd3b3ab82d7c37f4585149d.tar.gz aspectj-873e84edecc5609bafd3b3ab82d7c37f4585149d.zip |
Tests for declare parents where enums are involved.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/java5/enums/EnumAspect03.aj | 8 | ||||
-rw-r--r-- | tests/java5/enums/EnumAspect04.aj | 6 | ||||
-rw-r--r-- | tests/java5/enums/SimpleEnum2.java | 1 | ||||
-rw-r--r-- | tests/java5/enums/build.xml | 2 | ||||
-rw-r--r-- | tests/java5/enums/testcode.jar | bin | 1385 -> 2174 bytes |
5 files changed, 14 insertions, 3 deletions
diff --git a/tests/java5/enums/EnumAspect03.aj b/tests/java5/enums/EnumAspect03.aj index df5cc375b..ecaa2e20e 100644 --- a/tests/java5/enums/EnumAspect03.aj +++ b/tests/java5/enums/EnumAspect03.aj @@ -1,7 +1,11 @@ +import java.lang.Enum;
+
public aspect EnumAspect03 {
declare parents: SimpleEnum implements java.io.Serializable;
- class C extends Enum {
- }
+ class C extends Enum { }
declare parents: SimpleEnum extends C;
+
+ class D {}
+ declare parents: D extends Enum;
}
diff --git a/tests/java5/enums/EnumAspect04.aj b/tests/java5/enums/EnumAspect04.aj new file mode 100644 index 000000000..834d48807 --- /dev/null +++ b/tests/java5/enums/EnumAspect04.aj @@ -0,0 +1,6 @@ +import java.lang.Enum;
+
+public aspect EnumAspect04 {
+ declare parents: SimpleE* implements java.io.Serializable;
+
+}
diff --git a/tests/java5/enums/SimpleEnum2.java b/tests/java5/enums/SimpleEnum2.java new file mode 100644 index 000000000..b591a5f3f --- /dev/null +++ b/tests/java5/enums/SimpleEnum2.java @@ -0,0 +1 @@ +public enum SimpleEnum2 { Black, White }; diff --git a/tests/java5/enums/build.xml b/tests/java5/enums/build.xml index 3f95a0b25..ee9507228 100644 --- a/tests/java5/enums/build.xml +++ b/tests/java5/enums/build.xml @@ -3,7 +3,7 @@ <target name="default" > <delete dir="output" failonerror="false"/> <mkdir dir="output"/> - <javac destdir="output" debug="on" srcdir="." includes="SimpleEnum.java"/> + <javac destdir="output" debug="on" srcdir="." includes="SimpleEnum*.java"/> <javac destdir="output" debug="on" srcdir="." includes="Enum.java"/> <zip file="testcode.jar" basedir="output" includes="**/*"/> <delete dir="output"/> diff --git a/tests/java5/enums/testcode.jar b/tests/java5/enums/testcode.jar Binary files differindex 2322769d5..c9dd32ef7 100644 --- a/tests/java5/enums/testcode.jar +++ b/tests/java5/enums/testcode.jar |