Java 8 release changes
... code in documentation comments and command-line options. An error will be ... error message is displayed to user). Instead, use the following option ...
... code in documentation comments and command-line options. An error will be ... error message is displayed to user). Instead, use the following option ...
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)
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.
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.