JDK-8161256: general data in constant pools - Java Issue Tracker
Jul 12, 2016 ... class), nulls, annotation values, and array data. (See JDK-8161250 for an example; there are many more coming in Project Valhalla.) In order to ...
Jul 12, 2016 ... class), nulls, annotation values, and array data. (See JDK-8161250 for an example; there are many more coming in Project Valhalla.) In order to ...
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.
File an issue Hitting a snag with your Java application and can't find anything in search? Have a small enhancement suggestion for the JDK? File a new issue!
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).