bugs.java.com
JDK-7189915 - Java Issue Tracker
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile test code below. ... ACTUAL - Compiler error: error: incompatible types List<String> list = true ?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Compile test code below. ... ACTUAL - Compiler error: error: incompatible types List<String> list = true ?
This behaviour is totally independent of OS, Java Version, VM type etc. It's an error in java.lang.String source code which is the same for all JDK distributions.Create String from char array, release dummy char array. String longString = new String(bigCharArray)
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).