Results for “java constructor return string example script error 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-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
bugs.java.com
Bug ID: JDK-7004835 Different handling for final in constructor
A DESCRIPTION OF THE PROBLEM : There is a different handling for final member in constructor: Accessing by this or without this lead to a compile error or does not.EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - I'd prefer to get a compile error for FinalClass, too.