Commit dc87bfde by Alexandre Petit-Bianco Committed by Tom Tromey

MethodFailure4.java: New file.

2000-04-25  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* libjava.compile/MethodFailure4.java: New file.
	* libjava.compile/MethodFailure4.out: New file.

From-SVN: r33415
parent 424a02db
2000-04-25 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.compile/MethodFailure4.java: New file.
* libjava.compile/MethodFailure4.out: New file.
2000-04-20 Alexandre Petit-Bianco <apbianco@cygnus.com>
* libjava.compile/block.java: New file.
......
import java.util.*;
public class MethodFailure4 {
public static String call(A obj) {
return "A";
}
public static String call(I obj) {
return "I";
}
interface I {}
static class A {}
static class B extends A implements I {}
static class C extends B {}
public static A getA() {
return new A();
}
public static B getB() {
return new B();
}
public static C getC() {
return new C();
}
public static I getI() {
return new C();
}
// this method invocation is ambiguous
public static void main(String[] argv) {
call( getC() );
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment