diff -r 67f4f8f4d34a -r 1017cd5d6506 langtools/test/jdk/jshell/ToolBasicTest.java --- a/langtools/test/jdk/jshell/ToolBasicTest.java Fri Jun 30 05:47:35 2017 -0700 +++ b/langtools/test/jdk/jshell/ToolBasicTest.java Fri Jun 30 20:03:07 2017 +0200 @@ -325,12 +325,12 @@ String tilde = "~" + File.separator; test( (a) -> assertCommand(a, "/env --class-path " + tilde + "forblato", - "| File '" + System.getProperty("user.home") + File.separator - + "forblato' for '--class-path' is not found."), + "| File '" + Paths.get(System.getProperty("user.home"), "forblato").toString() + + "' for '--class-path' is not found."), (a) -> assertCommand(a, "/env --class-path " + jarPath + File.pathSeparator + tilde + "forblato", - "| File '" + System.getProperty("user.home") + File.separator - + "forblato' for '--class-path' is not found.") + "| File '" + Paths.get(System.getProperty("user.home"), "forblato").toString() + + "' for '--class-path' is not found.") ); } @@ -370,8 +370,8 @@ String tilde = "~" + File.separatorChar; test( (a) -> assertCommand(a, "/env --module-path " + tilde + "snardugol", - "| File '" + System.getProperty("user.home") - + File.separatorChar + "snardugol' for '--module-path' is not found.") + "| File '" + Paths.get(System.getProperty("user.home"), "snardugol").toString() + + "' for '--module-path' is not found.") ); }