aboutsummaryrefslogtreecommitdiffstats
path: root/tests/decp
diff options
context:
space:
mode:
authoraclement <aclement>2004-12-06 10:38:07 +0000
committeraclement <aclement>2004-12-06 10:38:07 +0000
commit9052d5d86cfcdeb9a64ed903beea53d077f0de08 (patch)
treee33f3ec7bcbccbbcf2d215379a16292f0bd6f65c /tests/decp
parent1370ad77d229efcd27d25a8732a60cc092b3fcf6 (diff)
downloadaspectj-9052d5d86cfcdeb9a64ed903beea53d077f0de08.tar.gz
aspectj-9052d5d86cfcdeb9a64ed903beea53d077f0de08.zip
Fixes for Bug 80249: Order of types passed to compiler determines weaving behavior
Diffstat (limited to 'tests/decp')
-rw-r--r--tests/decp/A.java2
-rw-r--r--tests/decp/AspectX.java3
-rw-r--r--tests/decp/B.java12
3 files changed, 17 insertions, 0 deletions
diff --git a/tests/decp/A.java b/tests/decp/A.java
new file mode 100644
index 000000000..f7e8cc3b9
--- /dev/null
+++ b/tests/decp/A.java
@@ -0,0 +1,2 @@
+public class A {
+}
diff --git a/tests/decp/AspectX.java b/tests/decp/AspectX.java
new file mode 100644
index 000000000..9fb992f50
--- /dev/null
+++ b/tests/decp/AspectX.java
@@ -0,0 +1,3 @@
+public aspect AspectX {
+ declare parents: A+ implements java.io.Serializable;
+}
diff --git a/tests/decp/B.java b/tests/decp/B.java
new file mode 100644
index 000000000..6a96c2e00
--- /dev/null
+++ b/tests/decp/B.java
@@ -0,0 +1,12 @@
+public class B extends A {
+
+ public static void main(String[] args) {
+ B b = new B();
+ if (b.getClass().getInterfaces().length>0) {
+ throw new RuntimeException("B should not implement any interfaces: "+b.getClass().getInterfaces()[0].toString());
+ }
+ if (!(b instanceof java.io.Serializable)) {
+ throw new RuntimeException("B should be serializable! Inherited from A");
+ }
+ }
+}