Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk13u-dev Public archive

Commit 49f6029

Browse files
author
Yuri Nesterenko
committed
8286855: javac error on invalid jar should only print filename
Backport-of: 1606d5545b8daad840575b7cfd97b94fd8a3d41d
1 parent 36be252 commit 49f6029

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jdk.compiler/share/classes/com/sun/tools/javac/file/JavacFileManager.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ public ArchiveContainer(Path archivePath) throws IOException, ProviderNotFoundEx
568568
try {
569569
this.fileSystem = jarFSProvider.newFileSystem(archivePath, env);
570570
} catch (ZipException ze) {
571-
throw new IOException("ZipException opening \"" + archivePath + "\": " + ze.getMessage(), ze);
571+
throw new IOException("ZipException opening \"" + archivePath.getFileName() + "\": " + ze.getMessage(), ze);
572572
}
573573
} else {
574574
this.fileSystem = FileSystems.newFileSystem(archivePath, (ClassLoader)null);

0 commit comments

Comments
 (0)