aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-04 10:47:47 +0000
committeraclement <aclement>2005-11-04 10:47:47 +0000
commita7e13f10303623cbab5f84e8d9cecd882308b52a (patch)
tree5d8683f94c2d3669908540de2d0757ff4b5b449e /tests/bugs150
parentbf51fe3e3fded74ae0ba424fdcf8f07394e665b5 (diff)
downloadaspectj-a7e13f10303623cbab5f84e8d9cecd882308b52a.tar.gz
aspectj-a7e13f10303623cbab5f84e8d9cecd882308b52a.zip
testcode and fix for pr112476: binary weaving decp
Diffstat (limited to 'tests/bugs150')
-rw-r--r--tests/bugs150/pr112476/case1/lib/A.java8
-rw-r--r--tests/bugs150/pr112476/case1/lib/B.java9
-rw-r--r--tests/bugs150/pr112476/case1/lib/C.java14
-rw-r--r--tests/bugs150/pr112476/case1/weaved/DeclareAspect.aj5
-rw-r--r--tests/bugs150/pr112476/case1/weaved/SuperC.java17
5 files changed, 53 insertions, 0 deletions
diff --git a/tests/bugs150/pr112476/case1/lib/A.java b/tests/bugs150/pr112476/case1/lib/A.java
new file mode 100644
index 000000000..dc0641af1
--- /dev/null
+++ b/tests/bugs150/pr112476/case1/lib/A.java
@@ -0,0 +1,8 @@
+package lib;
+
+public class A {
+
+ public A(String s) {
+ }
+
+}
diff --git a/tests/bugs150/pr112476/case1/lib/B.java b/tests/bugs150/pr112476/case1/lib/B.java
new file mode 100644
index 000000000..2436e248b
--- /dev/null
+++ b/tests/bugs150/pr112476/case1/lib/B.java
@@ -0,0 +1,9 @@
+package lib;
+
+public class B extends A{
+
+ public B(String s) {
+ super(s);
+ }
+
+}
diff --git a/tests/bugs150/pr112476/case1/lib/C.java b/tests/bugs150/pr112476/case1/lib/C.java
new file mode 100644
index 000000000..3760bf277
--- /dev/null
+++ b/tests/bugs150/pr112476/case1/lib/C.java
@@ -0,0 +1,14 @@
+/*
+ * Created on Oct 13, 2005
+ * \u00462004-2005 Business Process Engineering S.r.L. All rights reserved
+ */
+
+package lib;
+
+public class C extends B {
+
+ public C(String s) {
+ super(s);
+ }
+
+}
diff --git a/tests/bugs150/pr112476/case1/weaved/DeclareAspect.aj b/tests/bugs150/pr112476/case1/weaved/DeclareAspect.aj
new file mode 100644
index 000000000..29feee1a4
--- /dev/null
+++ b/tests/bugs150/pr112476/case1/weaved/DeclareAspect.aj
@@ -0,0 +1,5 @@
+package weaved;
+
+public aspect DeclareAspect {
+ declare parents : lib.C extends SuperC;
+}
diff --git a/tests/bugs150/pr112476/case1/weaved/SuperC.java b/tests/bugs150/pr112476/case1/weaved/SuperC.java
new file mode 100644
index 000000000..f2e1b0376
--- /dev/null
+++ b/tests/bugs150/pr112476/case1/weaved/SuperC.java
@@ -0,0 +1,17 @@
+package weaved;
+
+import lib.B;
+import lib.C;
+
+public class SuperC extends B {
+
+ public SuperC(String s) {
+ super(s);
+ }
+
+ public static void main(String[] args) {
+ C c = new C("test");
+ System.out.println("Is ["+C.class+"] subcass of ["+SuperC.class+"]? "+(SuperC.class.isAssignableFrom(c.getClass())));
+ }
+
+}