bugs.java.com
JDK-7189915 - Java Issue Tracker
... failed in code line using a conditional assignment with the diamond operator. ... ACTUAL - Compiler error: error: incompatible types List<String> list = true ?
... failed in code line using a conditional assignment with the diamond operator. ... ACTUAL - Compiler error: error: incompatible types List<String> list = true ?
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)