changeset 494:ca6bc36b2305

6915476: java.util.regex.PatternSyntaxException in com.sun.tools.javac.nio.PathFileObject Reviewed-by: darcy
author jjg
date Mon, 11 Jan 2010 14:12:10 -0800
parents f983c1dca202
children 14a4c45ef734
files src/share/classes/com/sun/tools/javac/nio/PathFileObject.java test/tools/javac/nio/compileTest/CompileTest.java
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/javac/nio/PathFileObject.java	Mon Jan 11 14:09:15 2010 -0800
+++ b/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/test/tools/javac/nio/compileTest/CompileTest.java	Mon Jan 11 14:09:15 2010 -0800
+++ b/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
  */