JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... In the code for the Inner constructor, you use an accessor method to ... For example, the following program would fail at runtime: <pre> ...
Feb 5, 1997 ... In the code for the Inner constructor, you use an accessor method to ... For example, the following program would fail at runtime: <pre> ...
Reading and writing a string from and to a file are common File operations. Currently, java.nio.file.Files already provides methods for the conversion between a byte array and file, as well as a list and file.
The Collection.toArray() method returns Object[] but it doesn't make clear that the runtime type of the returned array must be Object[].Adjust the wording of the specifications of these two methods. No code or behavior changes are included in this changeset.
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.
JDK-7153247 - Provide public method to insure secure maximum array size.Therefore it would be useful to expose this value publicly, possibly as constant of java.lang.reflect.Array (related: JDK-7153247) and have all JVMs adhere to this limit.
Description. C2 can generate out-of-bounds array loads. If executed, such a load can crash the VM, e.g. during GC, as the attached TEST.java demonstrates.