Results for “java constructor example string function code html error site:bugs.java.com”
bugs.java.com
Bug ID: JDK-8015831 Add lint check for calling ... - Java
One of the coding guidelines from "Effective Java" and elsewhere is to not call overridable methods from a constructor. A compiler is an in excellent position to perform this kind of check.
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
It's an error in java.lang.String source code which is the same for all JDK distributions.I have created a more simple example class which demonstrates this behaviour very clearly. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : See bug ID 4637640.