Java 8 release changes
Java Management Service, available to all users, can help you find vulnerable Java versions in your systems. Java SE Subscribers and customers running in Oracle ...
Java Management Service, available to all users, can help you find vulnerable Java versions in your systems. Java SE Subscribers and customers running in Oracle ...
ADDITIONAL REGRESSION INFORMATION: java version "1.8.0_20" Java(TM) SE Runtime Environment (build 1.8.0_20-b26) Java HotSpot(TM) 64-Bit Server VM (build 25.20-b23, mixed mode). STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : Simply try to compile this
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.
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.