Mercurial > hg > openjdk > jdk6 > jdk
changeset 1451:1c209b0c805e jdk6-b40
8164555: pack200: Leave ZipFile open on exceptions
Reviewed-by: omajid
author | andrew |
---|---|
date | Mon, 22 Aug 2016 14:53:06 +0100 |
parents | 99329004ad33 |
children | ac1d168048bd |
files | src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java Mon Aug 22 14:07:34 2016 +0100 +++ b/src/share/classes/com/sun/java/util/jar/pack/PackerImpl.java Mon Aug 22 14:53:06 2016 +0100 @@ -98,10 +98,13 @@ } else { (new DoPack()).run(in, out); } + // Close in only on success for compatibility :-( + in.close(); } finally { Utils.currentInstance.set(null); if (tz != null) TimeZone.setDefault(tz); - in.close(); + // Should be closed here + //in.close(); } }