JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... For example, the following program would fail at runtime: <pre> ...
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... For example, the following program would fail at runtime: <pre> ...
ADVANTAGE IN THE OVERLOADED clone() METHODS: When implementing the clone method, it would allow us to cast the cloned object to the right type. It may help to trap some errors at compile time. The following code give an example with the two classes above
In the process, we unify different method selection algorithms used by the JVM. The reflection API of <code>java.lang.Class</code> is enhanced to support nest- ...
import java.io.IOException; import java.util.ArraysNice find of the old bug: JDK-5060160 RedefineClasses should swap _method_ordering IK field There are a few of those old JVM/TI RedefineClasses() bugs that date back to the original SCA based Serviceability team.
HotSpot C2 crashes when we use unsafe API to fill an array in a loop. It can be reproduced by the case like below. byte[] array = new byte[size]; int offset = unsafe.arrayBaseOffset(byte[].class); for (int i = offset; i < offset + size; i++) {. unsafe.putByte(array, i, fill); } Crash report # #.
The workaround is of course simple: Dont make your fields public. Unfortunately this is difficult when using software that is affected by this bug and for which no source code is available. It simply breaks when changing from Java 6 to Java 7 without giving any error messages.
EVALUATION One problem with the suggested fix is the problem of what happens if the collection is being concurrently modified. The c.size() information may be inaccurate by the time c.toArray() is called, possibly leading to the method (rarely) returning an array with trailing null elements.