JDK-4030374 - Java Issue Tracker
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem ... code generation error in JDK 1.1.7B compiler. It appears that non ...
Feb 5, 1997 ... ... array before the superclass constructor runs. This is a problem ... code generation error in JDK 1.1.7B compiler. It appears that non ...
... PROBLEM : Compile test code ... ACTUAL - Compiler error: error: incompatible types List<String> list = true ? new ArrayList<>() : null; required: List<String> ...
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.
A DESCRIPTION OF THE PROBLEM : When an array for which a getter/setter exists is made public, it is completely ignored by XMLEncoder.writeObject().ERROR MESSAGES/STACK TRACES THAT OCCUR : The example doesnt produce any error messages.
export/kvn/jdk6u25/fastdebug/bin/java -server -XX:+UnlockDiagnosticVMOptions -XX:-UnrollLimitCheck -XX:CICompilerCount=1 -Xbatch -Xcomp t # #. A fatal error has been detected by the Java Runtime Environment
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Attempt to compile the following class under Java 7: import java.util.List; import java.util.SetERROR MESSAGES/STACK TRACES THAT OCCUR : See "actual result".
A DESCRIPTION OF THE PROBLEM : public String[] split(String regex). The above method does not work at all if the regex passed to it is "."ERROR MESSAGES/STACK TRACES THAT OCCUR : java.lang.ArrayIndexOutOfBoundsException: 0.