Java 8 release changes
security configuration file. See JDK-8369282. Keeping the JDK up to Date. Oracle recommends that the JDK is updated with each Critical Patch Update. In order ...
security configuration file. See JDK-8369282. Keeping the JDK up to Date. Oracle recommends that the JDK is updated with each Critical Patch Update. In order ...
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.
The workaround is of course simple: Dont make your fields public. Unfortunately this is difficult when using software that is affected by this bug and for which no source code is available. It simply breaks when changing from Java 6 to Java 7 without giving any error messages.
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.