Results for “java constructor return string example python code site:bugs.java.com 2”
bugs.java.com
Bug ID: JDK-8198790 Add constructors with Charset parameter for...
We also don't expect average developers to be using java.io.FileDescriptor directly as it tends to be used more with libraries that have native code.Is there a reason the java.io.FileDescriptor constructors don't get overloads with a Charset parameter? Too low of a duty-cycle?
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
The behaviour can even be "cloaked" by using java.util.regex classes: Matcher.group() etc. which seem to use substring internally for String extraction. This way it's nearly impossible to detect the memory leak. This behaviour is totally independent of OS, Java Version, VM type etc.
bugs.java.com
Bug ID: JDK-4106143 About polymorphism: changing the return type...
The following discussion gives two examplesIf you change the return type of all clone() methods in the Java library to the right type, it seem to me that it would not break the backward compatibility, except in the case of obvious programming error.