6915476: java.util.regex.PatternSyntaxException in com.sun.tools.javac.nio.PathFileObject
Reviewed-by: darcy
--- a/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java Mon Jan 11 14:09:15 2010 -0800
+++ b/langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java Mon Jan 11 14:12:10 2010 -0800
@@ -309,7 +309,7 @@
}
protected static String toBinaryName(String relativePath, String sep) {
- return removeExtension(relativePath).replaceAll(sep, ".");
+ return removeExtension(relativePath).replace(sep, ".");
}
protected static String removeExtension(String fileName) {
--- a/langtools/test/tools/javac/nio/compileTest/CompileTest.java Mon Jan 11 14:09:15 2010 -0800
+++ b/langtools/test/tools/javac/nio/compileTest/CompileTest.java Mon Jan 11 14:12:10 2010 -0800
@@ -23,6 +23,8 @@
/**
* @test
+ * @bug 6906175 6915476
+ * @summary Path-based JavaFileManager
* @compile HelloPathWorld.java
* @run main CompileTest
*/