Fri, 10 Dec 2010 15:24:17 +0000
6199075: Unambiguous varargs method calls flagged as ambiguous
Summary: javac does not implement overload resolution w.r.t. varargs methods as described in the JLS
Reviewed-by: jjg
1 T6326754.java:44:12: compiler.err.name.clash.same.erasure: TestConstructor(T), TestConstructor(K)
2 T6326754.java:52:17: compiler.err.name.clash.same.erasure: setT(K), setT(T)
3 T6326754.java:64:18: compiler.err.prob.found.req: (compiler.misc.incompatible.types), T, T
4 T6326754.java:70:11: compiler.err.cant.apply.symbol.1: kindname.method, setT, java.lang.Object, compiler.misc.no.args, kindname.class, TestC<T>, (compiler.misc.arg.length.mismatch)
5 - compiler.note.unchecked.filename: T6326754.java
6 - compiler.note.unchecked.recompile
7 4 errors