JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... Object.class. The synthetic static helper method class ...
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... Object.class. The synthetic static helper method class ...
The Collection.toArray() method returns Object[] but it doesn't make clear that the runtime type of the returned array must be Object[]. (Oddly, that is specified in toArray(T[]) which is in the wrong place.)
Rewriting and linking classes: done Number of classes 7323 instance classes = 7244 obj array classes = 71 type array classes = 8 Updating ConstMethods ... done.6. Run the following command to reproduce the failure. You may need to run it several times for it to fail
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.
ADDITIONAL OS VERSION INFORMATION : Microsoft Windows XP [Version 5.1.2600]. A DESCRIPTION OF THE PROBLEM : In JavaObjectArray.resolve, there is code to attempt to handle the case where the class object for the class of the array cannot be found.
For example, if you have "Class<T> klass", then you can create an instance "T instane = klass.newInstance()".Note: com/mn/tools/test/bugs/java/GenericArrayTest3.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 1 error".