mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-18 01:54:47 +02:00
8062314: Update tools/javac/plugin/showtype/Test.java to use ToolBox.java
Reviewed-by: jjg
This commit is contained in:
parent
4a3d559ffb
commit
4ca3a232d1
2 changed files with 30 additions and 50 deletions
|
@ -1475,7 +1475,7 @@ public class ToolBox {
|
|||
@Override
|
||||
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) {
|
||||
try {
|
||||
JarEntry e = new JarEntry(base.relativize(file).toString());
|
||||
JarEntry e = new JarEntry(base.relativize(file).normalize().toString());
|
||||
jos.putNextEntry(e);
|
||||
jos.write(Files.readAllBytes(file));
|
||||
jos.closeEntry();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue