j.ul.Objects follow-up: methods for var-argification? (original) (raw)

Ulf Zibis Ulf.Zibis at gmx.de
Fri Oct 9 08:33:40 UTC 2009


Am 08.10.2009 20:34, Joseph D. Darcy schrieb:

Hello.

In the discussion about java.util.Objects, a few existing JDK methods were mentioned for possible var-argification: java.util.Arrays.hashCode(Object[] a) java.util.Arrays.deepHashCode(Object[] a) java.util.Arrays.toString(Object[] a) Also of possible general interest are some methods on String (bug 6762452 API change proposal: Enhance String constructor for varargs) java.lang.String.copyValueOf(char[] data) java.lang.String.valueOf(char[] data) java.lang.String(char[] value) Var-argification is fully binary compatible and is generally source compatible, although new conversions are allowed of course and overloadings may change.

As String is final, there are no changed overloadings. As the Arrays methods are static, there are too no changed overloadings.

OK, correct me, if I'm wrong.

-Ulf



More information about the core-libs-dev mailing list