JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... ... Java code implementing the List. A similar mechanism should also ... code are TBD, but see static methods above for an example. Source ...
Jul 12, 2016 ... ... Java code implementing the List. A similar mechanism should also ... code are TBD, but see static methods above for an example. Source ...
This release also contains fixes for security vulnerabilities described in the Oracle Critical Patch Update. For a more complete list of the bug fixes included ...
Java SE. Community. Bug Database.Clarify specifications of Collection.toArray() and Collection.toArray(T[ ]). Problem -. The Collection.toArray() method returns Object[] but it doesn't make clear that the runtime type of the returned array must be Object[].
Collection.toArray() is specified to return an object of type Object[], but since arrays are covariant, that requirement is met by any array of a subtype of Object, for example, String[]. It's subtle, but it's clearly, if not explicitly, a bug to return an array of a subtype. See JDK-6260652.