Results for “java constructor example string python code file 1 site:bugs.java.com 2”
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.
bugs.java.com
Bug ID: JDK-7004835 Different handling for final in constructor
Assignment, however, occurs "if either the simple name of the variable, or its simple name qualified by this, occurs on the LHS of an assignment operator". The disparity between access and assignment was formalized only in JLS3. It looks undesirable; 'this.s' and 's' in the body of a constructor...
bugs.java.com
Bug ID: JDK-4072197 EventSetDescriptor should test for null...
This constructor should either throw a NullPointerException or ignore null listenerMethodNames elements. Other constructors work the same way. ==== Here is the test demonstrating the bug ==== import java.beans.*; import java.lang.reflect.*; import java.awt.event.ActionListener