aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-04-10 22:32:40 +0000
committerjhugunin <jhugunin>2003-04-10 22:32:40 +0000
commit11b3b0740b66f1d962b5179ece2f2d23e88f040b (patch)
treea684fa216d32fb44c5461de5947698abd86f59a5 /tests
parent808bae83b3d5f37de4b39a2380db2782919a5f8a (diff)
downloadaspectj-11b3b0740b66f1d962b5179ece2f2d23e88f040b.tar.gz
aspectj-11b3b0740b66f1d962b5179ece2f2d23e88f040b.zip
test for
Bugzilla Bug 35725 Inter type declaration to base class not seen by derived class
Diffstat (limited to 'tests')
-rw-r--r--tests/ajcTests.xml7
-rw-r--r--tests/bugs/interInherit/a_impl/AImpl.java8
-rw-r--r--tests/bugs/interInherit/a_impl/Af.java12
-rw-r--r--tests/bugs/interInherit/a_intf/A.java7
-rw-r--r--tests/bugs/interInherit/b_impl/BImpl.java20
-rw-r--r--tests/bugs/interInherit/b_intf/B.java10
-rw-r--r--tests/jimTests.xml1
7 files changed, 65 insertions, 0 deletions
diff --git a/tests/ajcTests.xml b/tests/ajcTests.xml
index 55014305b..97927ea16 100644
--- a/tests/ajcTests.xml
+++ b/tests/ajcTests.xml
@@ -5775,4 +5775,11 @@
<run class="Driver"/>
</ajc-test>
+ <ajc-test dir="bugs/interInherit" pr="35725"
+ title="Inter type declaration to base class not seen by derived class">
+ <compile files="a_impl/AImpl.java,a_impl/Af.java,a_intf/A.java,b_impl/BImpl.java,b_intf/B.java"/>
+ <run class="b_impl.BImpl"/>
+ </ajc-test>
+
+
</suite>
diff --git a/tests/bugs/interInherit/a_impl/AImpl.java b/tests/bugs/interInherit/a_impl/AImpl.java
new file mode 100644
index 000000000..65c9725ca
--- /dev/null
+++ b/tests/bugs/interInherit/a_impl/AImpl.java
@@ -0,0 +1,8 @@
+package a_impl;
+
+import a_intf.A;
+
+public class AImpl
+ implements A
+{
+}
diff --git a/tests/bugs/interInherit/a_impl/Af.java b/tests/bugs/interInherit/a_impl/Af.java
new file mode 100644
index 000000000..f7c0d158d
--- /dev/null
+++ b/tests/bugs/interInherit/a_impl/Af.java
@@ -0,0 +1,12 @@
+package a_impl;
+
+import a_intf.A;
+
+aspect Af
+{
+ public A AImpl.f()
+ {
+ System.out.println( "f called" );
+ return null;
+ }
+}
diff --git a/tests/bugs/interInherit/a_intf/A.java b/tests/bugs/interInherit/a_intf/A.java
new file mode 100644
index 000000000..14e200d2e
--- /dev/null
+++ b/tests/bugs/interInherit/a_intf/A.java
@@ -0,0 +1,7 @@
+
+package a_intf;
+
+public interface A
+{
+ A f();
+}
diff --git a/tests/bugs/interInherit/b_impl/BImpl.java b/tests/bugs/interInherit/b_impl/BImpl.java
new file mode 100644
index 000000000..7d0f7a934
--- /dev/null
+++ b/tests/bugs/interInherit/b_impl/BImpl.java
@@ -0,0 +1,20 @@
+package b_impl;
+
+import a_impl.AImpl;
+import b_intf.B;
+
+public class BImpl
+ extends AImpl
+ implements B
+{
+ public B g()
+ {
+ System.out.println( "g called" );
+ return null;
+ }
+
+ public static void main(String[] args) {
+ new BImpl().g();
+ new BImpl().f();
+ }
+}
diff --git a/tests/bugs/interInherit/b_intf/B.java b/tests/bugs/interInherit/b_intf/B.java
new file mode 100644
index 000000000..d21644dbd
--- /dev/null
+++ b/tests/bugs/interInherit/b_intf/B.java
@@ -0,0 +1,10 @@
+
+package b_intf;
+
+import a_intf.A;
+
+public interface B
+ extends A
+{
+ B g();
+}
diff --git a/tests/jimTests.xml b/tests/jimTests.xml
index cc3257d9f..7664c3799 100644
--- a/tests/jimTests.xml
+++ b/tests/jimTests.xml
@@ -1,6 +1,7 @@
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite>
+
<!--
<ajc-test dir="new" pr="885"