Results for “java array length example script code python site:bugs.java.com 0”
bugs.java.com
Bug ID: JDK-4837564 (bf) Please make DirectByteBuffer performance...
Sub-Component: java.nio. Affected Version: 1.4.1.The exaggerated example is just to make the point, in actual code, direct byte buffers are only about 4000 x slower than heap buffers even though in our actual code direct buffers are meant to have the potential of being a lot faster.
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-5107292 Generic array initialization expressions are...
Now, with Java1.5, Comparable is a generic type. Thus, after genericification, the above source code line, should read.STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile the provided source code (e.g.: with "javac com/mn/tools/test/bugs/java/GenericArrayTest2.java").
bugs.java.com
Bug ID: JDK-4147276 java.io.OutputStreamWriter throws exception...
JDK-4147276 : java.io.OutputStreamWriter throws exception instead of flushing internal buffer.The problem seems to be with the method "writer" in OutputStreamWriter. The writer converts characters to bytes using the chartobyte converter. This uses a buffer of fixed length 8192.