mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8063074: test/tools/javac/plugin/showType/Test.java fails on Windows
Reviewed-by: ksrini
This commit is contained in:
parent
a75d2dbd39
commit
c4f3406133
2 changed files with 7 additions and 3 deletions
|
@ -1475,7 +1475,11 @@ public class ToolBox {
|
|||
@Override
|
||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
|
||||
try {
|
||||
JarEntry e = new JarEntry(base.relativize(file).normalize().toString());
|
||||
String p = base.relativize(file)
|
||||
.normalize()
|
||||
.toString()
|
||||
.replace(File.separatorChar, '/');
|
||||
JarEntry e = new JarEntry(p);
|
||||
jos.putNextEntry(e);
|
||||
jos.write(Files.readAllBytes(file));
|
||||
jos.closeEntry();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue