]> source.dussan.org Git - aspectj.git/commitdiff
test for
authorjhugunin <jhugunin>
Thu, 10 Apr 2003 22:32:40 +0000 (22:32 +0000)
committerjhugunin <jhugunin>
Thu, 10 Apr 2003 22:32:40 +0000 (22:32 +0000)
Bugzilla Bug 35725
   Inter type declaration to base class not seen by derived class

tests/ajcTests.xml
tests/bugs/interInherit/a_impl/AImpl.java [new file with mode: 0644]
tests/bugs/interInherit/a_impl/Af.java [new file with mode: 0644]
tests/bugs/interInherit/a_intf/A.java [new file with mode: 0644]
tests/bugs/interInherit/b_impl/BImpl.java [new file with mode: 0644]
tests/bugs/interInherit/b_intf/B.java [new file with mode: 0644]
tests/jimTests.xml

index 55014305b926b60892138ebca89fea8e817c6566..97927ea1635a0595bdd0ce44e7fe1596d7d6ce42 100644 (file)
         <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 (file)
index 0000000..65c9725
--- /dev/null
@@ -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 (file)
index 0000000..f7c0d15
--- /dev/null
@@ -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 (file)
index 0000000..14e200d
--- /dev/null
@@ -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 (file)
index 0000000..7d0f7a9
--- /dev/null
@@ -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 (file)
index 0000000..d21644d
--- /dev/null
@@ -0,0 +1,10 @@
+
+package b_intf;
+
+import a_intf.A;
+
+public interface B
+  extends A
+{
+  B g();
+}
index cc3257d9f51b12c474151c9b0793afa5260e8d99..7664c379982f33b79e28be5dfb6be6dee5b8a25d 100644 (file)
@@ -1,6 +1,7 @@
 <!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
 <suite>    
 
+
     <!--
     
     <ajc-test dir="new" pr="885"