Community
Participate
Working Groups
3.1 RC1 with latest JDT Core The following doesn't compile any longer: public class X { public static String bind(String message, Object binding) { return null; } public static String bind(String message, Object[] bindings) { return null; } } class Y extends X { public static String bind(String message, Object binding) { return null; } public static String bind(String message, Object[] bindings) { return null; } } class Z { void bar() { Y.bind("", new String[] {""}); } } It reports an ambiguous method reference to Y.bind(...).
Consequence of change for bug 97161. Kent - pls redo proper fix. Added MethodVerifyTest#test056
Disabled latest check in Scope#mostSpecificMethodBinding. Also disabled consequently failing test: MethodVerifyTest#test043a
Note that StaticImportTests#test024 is currently failing with what's in HEAD. I disabled it for now.
The fix for bug 97161 is not the problem. In Scope.findMethod(), the code to skip over equal inherited methods was buggy. It would miss comparing the second matching method if the first one was equal since it decremented the length & exited the loop early.
Kent, I'm not seeing your changes in HEAD. Did I miss something ?
Verified using N20050606-0010 + JDT/Core HEAD
Verified for 3.1 RC2 using build I20050610-0010
close