< prev index next >

src/jdk.zipfs/share/classes/jdk/nio/zipfs/ZipFileSystem.java

Print this page
rev 57904 : 8225507: (zipfs) - No space left on device not thrown with ZipFileSystem
Summary: jdk.nio.zipfs.ZipFileSystem no longer swallows the IOExceptions
Reviewed-by:

*** 1731,1741 **** // write loc for (IndexNode inode : inodes.values()) { if (inode instanceof Entry) { // an updated inode e = (Entry)inode; - try { if (e.type == Entry.COPY) { // entry copy: the only thing changed is the "name" // and "nlen" in LOC header, so we update/rewrite the // LOC in new file and simply copy the rest (data and // ext) without enflating/deflating from the old zip --- 1731,1740 ----
*** 1747,1776 **** e.locoff = written; written += e.writeLOC(os); // write loc header written += writeEntry(e, os); } elist.add(e); - } catch (IOException x) { - x.printStackTrace(); // skip any in-accurate entry - } } else { // unchanged inode if (inode.pos == -1) { continue; // pseudo directory node } if (inode.name.length == 1 && inode.name[0] == '/') { continue; // no root '/' directory even if it // exists in original zip/jar file. } e = supportPosix ? new PosixEntry(this, inode) : new Entry(this, inode); - try { if (buf == null) buf = new byte[8192]; written += copyLOCEntry(e, false, os, written, buf); elist.add(e); - } catch (IOException x) { - x.printStackTrace(); // skip any wrong entry - } } } // now write back the cen and end table end.cenoff = written; --- 1746,1768 ----
< prev index next >