JDK-7189915 - Java Issue Tracker
... PROBLEM : Compile test code ... error: error: incompatible types List<String> list = true ? new ArrayList<>() : null; required: List<String> found: ArrayList ...
... PROBLEM : Compile test code ... error: error: incompatible types List<String> list = true ? new ArrayList<>() : null; required: List<String> found: ArrayList ...
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)
Jul 12, 2016 ... This scheme is much more future-proof, and can represent future types (like values and flat value-array constants) without new constant pool ...
A DESCRIPTION OF THE PROBLEM : When an array for which a getter/setter exists is made public, it is completely ignored by XMLEncoder.writeObject().When run with Java 1.6_21 the code works fine regardless of the access specifier of arr.
EVALUATION This is not a bug, but a developer error. First, when the L&F is switched, the developer needs to update the UI of all existing Swing components so that they're prepared to deal with the L&F switch (see SwingUtilities.updateComponentTreeUI).
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).
ADDITIONAL REGRESSION INFORMATION: java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode). STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Simply try to compile this