Fwd: A fix to watch: JDK-6260652: (coll) Arrays.asList(x).toArray().getClass() should be Object[].class
Martijn Verburg
martijnverburg at gmail.com
Wed Aug 12 18:22:04 UTC 2015
---------- Forwarded message ----------
From: *joe darcy* <joe.darcy at oracle.com>
Date: Wednesday, 12 August 2015
Subject: A fix to watch: JDK-6260652: (coll)
Arrays.asList(x).toArray().getClass() should be Object[].class
To: "jdk9-dev at openjdk.java.net" <jdk9-dev at openjdk.java.net>
FYI,
As of build 73, the following change has been present in JDK 9:
JDK-6260652: (coll) Arrays.asList(x).toArray().getClass() should be
Object[].class
https://bugs.openjdk.java.net/browse/JDK-6260652
As the summary implies, the long-standing behavior of
Arrays.asList(x).toArray() was changed from returning a clone of the
backing array, which might be say, a String[], to returning the specified
type, Object[].
As early users of JDK 9, please be aware of this change and report on
experiences using it.
Thanks,
-Joe
--
Cheers, Martijn (Sent from Gmail Mobile)
More information about the adoption-discuss
mailing list