Results for “java array string file command error user code site:bugs.java.com fix”
bugs.java.com
Bug ID: JDK-4899439 File uses strings for names but file names are...
For example, command line arguments and environment variables are presented to the user as if they were strings, but the typical content is filenames. Half-hearted attempts to fix this bug would leave us with the ability to access the underlying byte array only in some contexts.
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.