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

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 1, 2022
1 parent 81f41c6 commit 7aecf43
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,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 7aecf43

@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.