JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... After the superclass constructor has returned it is safe; one option is to ...
Feb 5, 1997 ... ... code generation error in JDK 1.1.7B compiler. It appears that non ... After the superclass constructor has returned it is safe; one option is to ...
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.
EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Code should compile without error. ACTUAL - javac rejects the code, as shown in the description. ERROR MESSAGES/STACK TRACES THAT OCCUR : F.java:4: illegal reference to static field from initializer.
A DESCRIPTION OF THE PROBLEM : There is a different handling for final member in constructor: Accessing by this or without this lead to a compile error or does not.EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - I'd prefer to get a compile error for FinalClass, too.
Add constructors for the FileReader and FileWriter that take a Charset parameter. Problem -. The FileReader and FileWriter were designed as a convenient API for situations where default settings are desirable.