Results for “java array string file command error example code site:bugs.java.com fix”
bugs.java.com
Bug ID: JDK-6294060 Use of substring() causes memory leak
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.
bugs.java.com
Java Bug Database FAQ - Java Issue Tracker
Java JDK/JRE Version. Environmental information (e.g. CLASSPATH, PATH, etc.). Command line options tried (e.g. -Xint for a compiler bug). More information can be found on Oracle's Java 8 Documentation page for Submitting a Bug Report. For regressions, include the JDK version and build number where the bug does not exist.
bugs.java.com
JDK-8011539 : File APIs Should Not Allow Null Bytes
FYI - .NET does not allow a string containing a null byte to be used by the file APIs. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - When a file API receives a string to be used as a filename, it should throw an exception if the string contains characters that are illegal in the underlying filesystem's naming rules.