mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-10 18:38:27 +00:00
8286855: javac error on invalid jar should only print filename
Reviewed-by: jpai, mdoerr
This commit is contained in:
parent
f086d945c3
commit
1606d5545b
@ -564,7 +564,7 @@ public class JavacFileManager extends BaseFileManager implements StandardJavaFil
|
||||
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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user