Projects
openEuler:24.03:SP1:Everything
openjdk-1.8.0
_service:tar_scm:add-Adapting-IOException-of-Zi...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:add-Adapting-IOException-of-Zip-to-ZipException.patch of Package openjdk-1.8.0
From 7965b56b3269b8e553ce929a466466990c9d0c07 Mon Sep 17 00:00:00 2001 Date: Fri, 22 Sep 2023 14:45:16 +0800 Subject: add Adapting-IOException-of-Zip-to-ZipException --- jdk/src/share/classes/java/util/zip/ZipFile.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jdk/src/share/classes/java/util/zip/ZipFile.java b/jdk/src/share/classes/java/util/zip/ZipFile.java index 36135a9c0..e603e83d3 100644 --- a/jdk/src/share/classes/java/util/zip/ZipFile.java +++ b/jdk/src/share/classes/java/util/zip/ZipFile.java @@ -970,7 +970,11 @@ class ZipFile implements ZipConstants, Closeable { return src; } } - src = new Source(key, toDelete); + try { + src = new Source(key, toDelete); + } catch (IOException exception) { + throw new ZipException(exception.getMessage()); + } synchronized (files) { if (files.containsKey(key)) { // someone else put in first -- 2.22.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2