mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-17 22:05:31 +00:00
8343307: Throw ZipException instead of IAE in ZipFile.Source::initCEN
Reviewed-by: lancea, jpai
This commit is contained in:
parent
388d44fbf0
commit
2f1ba5ef09
@ -1798,7 +1798,7 @@ public class ZipFile implements ZipConstants, Closeable {
|
||||
metaVersions = new HashMap<>();
|
||||
metaVersions.computeIfAbsent(hashCode, _ -> new BitSet()).set(version);
|
||||
} catch (Exception e) {
|
||||
throw new IllegalArgumentException(e);
|
||||
zerror("invalid CEN header (bad entry name or comment)");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user