Browse Source

test for

Bugzilla Bug 35725  
   Inter type declaration to base class not seen by derived class
tags/V1_1_0_RC2
jhugunin 21 years ago
parent
commit
11b3b0740b

+ 7
- 0
tests/ajcTests.xml View File

@@ -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>

+ 8
- 0
tests/bugs/interInherit/a_impl/AImpl.java View File

@@ -0,0 +1,8 @@
package a_impl;

import a_intf.A;

public class AImpl
implements A
{
}

+ 12
- 0
tests/bugs/interInherit/a_impl/Af.java View File

@@ -0,0 +1,12 @@
package a_impl;

import a_intf.A;

aspect Af
{
public A AImpl.f()
{
System.out.println( "f called" );
return null;
}
}

+ 7
- 0
tests/bugs/interInherit/a_intf/A.java View File

@@ -0,0 +1,7 @@

package a_intf;

public interface A
{
A f();
}

+ 20
- 0
tests/bugs/interInherit/b_impl/BImpl.java View File

@@ -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();
}
}

+ 10
- 0
tests/bugs/interInherit/b_intf/B.java View File

@@ -0,0 +1,10 @@

package b_intf;

import a_intf.A;

public interface B
extends A
{
B g();
}

+ 1
- 0
tests/jimTests.xml View File

@@ -1,6 +1,7 @@
<!DOCTYPE suite SYSTEM "../tests/ajcTestSuite.dtd">
<suite>


<!--
<ajc-test dir="new" pr="885"

Loading…
Cancel
Save