2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / libjava / testsuite / libjava.compile / MethodFailure4.java
blobbed3a0e1311c57f45fb9020795e233689577a7b1
1 import java.util.*;
3 public class MethodFailure4 {
5 public static String call(A obj) {
6 return "A";
8 public static String call(I obj) {
9 return "I";
12 interface I {}
13 static class A {}
14 static class B extends A implements I {}
15 static class C extends B {}
18 public static A getA() {
19 return new A();
22 public static B getB() {
23 return new B();
26 public static C getC() {
27 return new C();
30 public static I getI() {
31 return new C();
34 // this method invocation is ambiguous
36 public static void main(String[] argv) {
37 call( getC() );