JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... Because of verifier limitations, the compiler cannot arrange to initialize synthetic fields like this$0 and val$array before the superclass ...
Feb 5, 1997 ... Because of verifier limitations, the compiler cannot arrange to initialize synthetic fields like this$0 and val$array before the superclass ...
The Collection.toArray() method returns Object[] but it doesn't make clear that the runtime type of the returned array must be Object[].
Collection.toArray() is specified to return an object of type Object[], but since arrays are covariant, that requirement is met by any array of a subtype of Object, for example, String[]. It's subtle, but it's clearly, if not explicitly, a bug to return an array of a subtype. See JDK-6260652.
For example, command line arguments and environment variables are presented to the user as if they were strings, but the typical content is filenames. Half-hearted attempts to fix this bug would leave us with the ability to access the underlying byte array only in some contexts.
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.The method returns a clone of the current node if it loads from the result of an Object.clone() call on an array.
JDK-8066871 - java.lang.VerifyError: Bad local variable type - local final String.A DESCRIPTION OF THE PROBLEM : In rare cases, constant variables are not resolved at compile time (as mandated by JLS 13.1 bullet point 3) and a reference to the field is still present in the code.