Think about it. What if you have a method like this:
public void foo(Object... objects);
And tried to call him like this:
foo("bar", new Object[] { "baz" });
Should Object[] in the second position be considered as one Object in the varargs call, or should it be "extended"? This will lead to very confusing behavior.
Colind
source share