Skip to content

Commit 95b7345

Browse files
7903834: apidiff: DocPath issue on Windows
Reviewed-by: cstein, iris
1 parent a10e142 commit 95b7345

File tree

1 file changed

+1
-0
lines changed
  • src/share/classes/jdk/codetools/apidiff/report/html

1 file changed

+1
-0
lines changed

src/share/classes/jdk/codetools/apidiff/report/html/DocPath.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public static DocPath create(String p) {
5959
* @param p the string
6060
*/
6161
protected DocPath(String p) {
62+
p = p.replace(File.separatorChar, '/'); // normalize paths
6263
path = (p.endsWith("/") ? p.substring(0, p.length() - 1) : p);
6364
}
6465

0 commit comments

Comments
 (0)