Java issue with var-args and boxing
<p>I have a question related to the following code snippet:</p>

<pre><code>    class VarArgsTricky {
    static void wide_vararg(long... x) {
        System.out.println("long...");
    }

    static void wide_vararg(Integer... x) {
        System.out.println("Integer...");
    }

    public static void main(String[] args) {
        int i = 5;
        wide_vararg(i, i, i); // needs to widen and use var-args
        Long l = 9000000000l;
        wide_vararg(l, l); // prints sucessfully "long..."
    }
}
</code></pre>

<p>The first call to wide_vararg fails to compile(saying that the method is ambigous) while the second compiles just fine. </p>

<p>Any explanations about this behaviour?
Thanks!</p>
