JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... constructor has returned. For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi ...
Feb 5, 1997 ... ... constructor has returned. For example, the following program would fail at runtime: <pre> class SuperInitBug { static class S { void hi ...
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.
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
Java SE. Community. Bug Database.Description. See the constructor start position in the following example: public class Test {.
code>. I understand that it is an error to overload a method with an other one with the same signature but a totally different return type. But it���s not clear to me why we are not allowed to change the return type in this particular case, since Integer is a subclass of Number.