bugs.java.com
JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... not work until after the superclass constructor has returned. For example, the following program would fail at runtime: <pre> class ...
Feb 5, 1997 ... ... not work until after the superclass constructor has returned. For example, the following program would fail at runtime: <pre> class ...
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.
ArrayList Iterator behavior has been changed from jdk6 to jdk7. Create and compile the below 3 class and then run Main.java.