JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. ... class's instance methods did not work until after the superclass constructor has returned.
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. ... class's instance methods did not work until after the superclass constructor has returned.
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.
However, this does not work because fiels clazz is never null - it contains a Number which is the id of the class object we are looking for. JHAT then crashes when it tries to cast the Number to a JavaClass. REPRODUCIBILITY : This bug can be reproduced always.