mirror of
https://github.com/openjdk/jdk.git
synced 2026-01-29 20:48:29 +00:00
6915476: java.util.regex.PatternSyntaxException in com.sun.tools.javac.nio.PathFileObject
Reviewed-by: darcy
This commit is contained in:
parent
dfe44a05ec
commit
8d42657600
@ -309,7 +309,7 @@ abstract class PathFileObject implements JavaFileObject {
|
||||
}
|
||||
|
||||
protected static String toBinaryName(String relativePath, String sep) {
|
||||
return removeExtension(relativePath).replaceAll(sep, ".");
|
||||
return removeExtension(relativePath).replace(sep, ".");
|
||||
}
|
||||
|
||||
protected static String removeExtension(String fileName) {
|
||||
|
||||
@ -23,6 +23,8 @@
|
||||
|
||||
/**
|
||||
* @test
|
||||
* @bug 6906175 6915476
|
||||
* @summary Path-based JavaFileManager
|
||||
* @compile HelloPathWorld.java
|
||||
* @run main CompileTest
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user