8062314: Update tools/javac/plugin/showtype/Test.java to use ToolBox.java

Reviewed-by: jjg
This commit is contained in:
Sonali Goel 2014-11-04 13:21:25 -08:00
parent 4a3d559ffb
commit 4ca3a232d1
2 changed files with 30 additions and 50 deletions

View file

@ -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();