Results for “java constructor example string method object pdf code site:bugs.java.com”
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
This way it's nearly impossible to detect the 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.
bugs.java.com
Bug ID: JDK-4619333 stddoclet: Separate out static factory methods...
That way the benefits of using such methods would be encouraged. Maybe have the static factory methods grouped after the constructors in the javadoc. In one instance this would be beneficial since some constructors will be private and thus uninstantiable by normal conventions.