Skip to content

Commit 1606d55

Browse files
committed
8286855: javac error on invalid jar should only print filename
Reviewed-by: jpai, mdoerr
1 parent f086d94 commit 1606d55

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public ArchiveContainer(Path archivePath) throws IOException, ProviderNotFoundEx
564564
try {
565565
this.fileSystem = jarFSProvider.newFileSystem(archivePath, env);
566566
} catch (ZipException ze) {
567-
throw new IOException("ZipException opening \"" + archivePath + "\": " + ze.getMessage(), ze);
567+
throw new IOException("ZipException opening \"" + archivePath.getFileName() + "\": " + ze.getMessage(), ze);
568568
}
569569
} else {
570570
this.fileSystem = FileSystems.newFileSystem(archivePath, (ClassLoader)null);

0 commit comments

Comments
 (0)