mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8343307: Throw ZipException instead of IAE in ZipFile.Source::initCEN
Reviewed-by: lancea, jpai
This commit is contained in:
parent
388d44fbf0
commit
2f1ba5ef09
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue