Results for “java constructor return string in array example program in python code site:bugs.java.com”
bugs.java.com
Bug ID: JDK-4489146 BigInteger(String, int) does not fail on multiple...
If the String passed to the BigInteger(String, int) constructor begins with "-- " (two minus signs), or "-0-" then a BigInteger object is created even though such a String is badly formatted. Since BigDecimal(String) depends on the above BigInteger constructor, BigDecimal also has...
bugs.java.com
Bug ID: JDK-8192841 Collection.toArray() spec should be explicit about...
are returned by its iterator, this method must return the elements in - * the same order. + * the same order. The returned array's {@linkplain Class#getComponentType + * runtime component type} is {@code Object}. * * &
bugs.java.com
Bug ID: JDK-8160406 Collection.toArray() spec should be explicit about...
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.