1.1 --- a/tests/DispatchTest.java Thu Nov 11 22:59:18 2004 +0100
1.2 +++ b/tests/DispatchTest.java Fri Nov 12 01:27:34 2004 +0100
1.3 @@ -30,12 +30,16 @@
1.4 this.b = b;
1.5 }
1.6
1.7 + // The ordering of the methods probably should not prevent the most specific
1.8 + // method from being chosen, but this happens with a linear search of
1.9 + // appropriate methods.
1.10 +
1.11 public int test(DispatchInterface obj) {
1.12 return obj.test();
1.13 }
1.14
1.15 public int test(DispatchClass1 obj) {
1.16 - return obj.test();
1.17 + return obj.test() + 10;
1.18 }
1.19
1.20 public int testTest(DispatchInterface obj) {