Bugzilla Bug 35725 Inter type declaration to base class not seen by derived classtags/V1_1_0_RC2
@@ -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> |
@@ -0,0 +1,8 @@ | |||
package a_impl; | |||
import a_intf.A; | |||
public class AImpl | |||
implements A | |||
{ | |||
} |
@@ -0,0 +1,12 @@ | |||
package a_impl; | |||
import a_intf.A; | |||
aspect Af | |||
{ | |||
public A AImpl.f() | |||
{ | |||
System.out.println( "f called" ); | |||
return null; | |||
} | |||
} |
@@ -0,0 +1,7 @@ | |||
package a_intf; | |||
public interface A | |||
{ | |||
A f(); | |||
} |
@@ -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(); | |||
} | |||
} |
@@ -0,0 +1,10 @@ | |||
package b_intf; | |||
import a_intf.A; | |||
public interface B | |||
extends A | |||
{ | |||
B g(); | |||
} |
@@ -1,6 +1,7 @@ | |||
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd"> | |||
<suite> | |||
<!-- | |||
<ajc-test dir="new" pr="885" |