6915476: java.util.regex.PatternSyntaxException in com.sun.tools.javac.nio.PathFileObject
authorjjg
Mon, 11 Jan 2010 14:12:10 -0800
changeset 4701 39e13c0d8d75
parent 4700 d0ef13314ec4
child 4702 bb3925c7b58a
6915476: java.util.regex.PatternSyntaxException in com.sun.tools.javac.nio.PathFileObject Reviewed-by: darcy
langtools/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java
langtools/test/tools/javac/nio/compileTest/CompileTest.java
--- 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
  */