Results for “java array string file command error code example html script site:bugs.java.com”
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
Bug ID: JDK-4262372 Spaces in command-line parameters removed...
The following program executes the command first with the string array, then with the string: import java.io.*It seems as though the array method of exec is removing both spaces and also adding a 'blank' final parameter, and the string version is collapsing the two spaces down to one.