I tried a test where I overloaded a function using var-args. One
function expected a list of long values and the other expected a list of
Integers. The compiler complained when I tried to use the Integer
The method widen(long) is ambiguous for the type WideningAndBoxing
The line about which the compiler complained is a call to widen() with
three Integer parameters, which is the second function (below).
FYI, I downloaded the latest JDK (jdk 1.6.0_21) and it does not produce the compiler error. My previous version was 1.6.0 but I don't remember the revision. (I downloaded the latest version for other reasons and was pleasantly surprised to find this issue resolved.)