Community
Participate
Working Groups
Build ID: M20060921-0945 Steps To Reproduce: 1. In the compiler error preferences, set "Inexact type match for vararg arguments" to "Error". 2. Compile the following class: public class Foo { public void foo() { Integer[] array = null; varargs(array); } public void varargs( Number ... o ) { } } 3. The line "varargs(array);" is marked as an error. The description reads "The argument of type Integer[] should explicitly be cast to Number[] for the invocation of the varargs method varargs(Number ...) from type Foo. It could alternatively be cast to Number for a varargs invocation". More information:
Fixed in 3.3 stream *** This bug has been marked as a duplicate of bug 159607 ***
Added regression test: VarargsTest#test059