JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem because Java allows subclass methods to be run from the superclass constructor.
For example, "static Integer Integer.valueOf(String)" fits this pattern and is indeed a static factory. What surprised me was how extensive static factories are used in the JDK.The summary table order would make sense with the constructors first and static factory methods second.
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.
jdk1.4.0beta-b54 java.lang.Class: newInstance() incorrectly throws IllegalAccessException creating an instance of the class from the same package with protected nullary constructor. Such a behavior contradicts to the API spec for Class.newInstance that reads
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.