mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 03:24:38 +02: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
2 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue