Skip to content

Commit d87927d

Browse files
committed
8286855: javac error on invalid jar should only print filename
Backport-of: 1606d5545b8daad840575b7cfd97b94fd8a3d41d
1 parent a621832 commit d87927d

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