JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> ... (correct) code. I have filed a bug against the verifier (4408261) but ...
Feb 5, 1997 ... For example, the following program would fail at runtime: <pre> ... (correct) code. I have filed a bug against the verifier (4408261) but ...
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 # #. A fatal error has been detected by the Java Runtime Environment
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.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.Related Reports. Blocks : JDK-8090255 - Fix doclint errors and warnings in JavaFX API docs.
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.