Mon, 11 Jan 2010 14:12:10 -0800
6915476: java.util.regex.PatternSyntaxException in com.sun.tools.javac.nio.PathFileObject
Reviewed-by: darcy
1.1 --- a/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java Mon Jan 11 14:09:15 2010 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java Mon Jan 11 14:12:10 2010 -0800 1.3 @@ -309,7 +309,7 @@ 1.4 } 1.5 1.6 protected static String toBinaryName(String relativePath, String sep) { 1.7 - return removeExtension(relativePath).replaceAll(sep, "."); 1.8 + return removeExtension(relativePath).replace(sep, "."); 1.9 } 1.10 1.11 protected static String removeExtension(String fileName) {
2.1 --- a/test/tools/javac/nio/compileTest/CompileTest.java Mon Jan 11 14:09:15 2010 -0800 2.2 +++ b/test/tools/javac/nio/compileTest/CompileTest.java Mon Jan 11 14:12:10 2010 -0800 2.3 @@ -23,6 +23,8 @@ 2.4 2.5 /** 2.6 * @test 2.7 + * @bug 6906175 6915476 2.8 + * @summary Path-based JavaFileManager 2.9 * @compile HelloPathWorld.java 2.10 * @run main CompileTest 2.11 */