This discussion is archived
0 Replies Latest reply: Feb 8, 2013 3:16 AM by 989974 RSS

JRE 1.7.0_10 Bug, removing the last backslash of the parameters

989974 Newbie
Currently Being Moderated
With the jre 1.7.0_10 (that started to support windows 8) when I call a jar and pass some parameters, it removes the last backslash of any parameter that ends with backslash.

Example:
public class Test {
public static void main( String[] args ) {
System.out.println( Arrays.toString( args ) );
}
}

When I call the jar with the following line:
java -jar Test.jar 14 14 \us1\kugel\c014\ \us1\kugel\m014\

With jre 1.7.0_9 the result is:
[14, 14, \us1\kugel\c014\, \us1\kugel\m014\]

With jre 1.7.0_10, 1.7.0_11, 1.7.0_12(pre-release) and 1.7.0_13 the result is: (Tested with windows xp and windows 8)
[14, 14, \us1\kugel\c014, \us1\kugel\m014]

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points