Results for “java method return string array to function example api code site:bugs.java.com”
bugs.java.com
Bug ID: JDK-8202055 Add methods to Files for reading/writing...
Add methods to java.nio.file.Files for reading a file into a string and writing a string to a file.Adding string-to-file APIs gives an option for a convenient and direct conversion between a string and file.
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
This behaviour is totally independent of OS, Java Version, VM type etc. It's an error in java.lang.String source code which is the same for all JDK distributions.Create String from char array, release dummy char array. String longString = new String(bigCharArray)
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.