JDK-7189915 - Java Issue Tracker
EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Compile without error. ACTUAL - Compiler error: error: incompatible types List<String> list = true ? new ArrayList<> ...
EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - Compile without error. ACTUAL - Compiler error: error: incompatible types List<String> list = true ? new ArrayList<> ...
3 Comments · Kumar Srinivasan. 2010-07-27 16:29. BT2:EVALUATION This seems to be a combination of issues with cmd, launcher and its file system access. · Kumar ...
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 : You can create a file that Java's java.io.File class cannot read. This is because file names are actually byte-arrays in the os but java.io.File takes a String for a file name (which is composed of Unicode characters).