Skip to content

Commit

Permalink
8286855: javac error on invalid jar should only print filename
Browse files Browse the repository at this point in the history
Backport-of: 1606d5545b8daad840575b7cfd97b94fd8a3d41d
  • Loading branch information
RealCLanger committed Jun 7, 2022
1 parent 6ed9725 commit 3472ab2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public ArchiveContainer(Path archivePath) throws IOException, ProviderNotFoundEx
try {
this.fileSystem = jarFSProvider.newFileSystem(archivePath, env);
} catch (ZipException ze) {
throw new IOException("ZipException opening \"" + archivePath + "\": " + ze.getMessage(), ze);
throw new IOException("ZipException opening \"" + archivePath.getFileName() + "\": " + ze.getMessage(), ze);
}
} else {
this.fileSystem = FileSystems.newFileSystem(archivePath, (ClassLoader)null);
Expand Down

1 comment on commit 3472ab2

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.