equal
deleted
inserted
replaced
82 // central directory information we read earlier. |
82 // central directory information we read earlier. |
83 Enumeration<? extends ZipEntry> entries = zf.entries(); |
83 Enumeration<? extends ZipEntry> entries = zf.entries(); |
84 try { |
84 try { |
85 while (entries.hasMoreElements()) { |
85 while (entries.hasMoreElements()) { |
86 ze = entries.nextElement(); |
86 ze = entries.nextElement(); |
|
87 zf.getInputStream(ze).readAllBytes(); |
87 } |
88 } |
88 fail("Did not get expected exception"); |
89 fail("Did not get expected exception"); |
89 } catch (ZipError e) { |
90 } catch (ZipException e) { |
90 pass(); |
91 pass(); |
91 } catch (InternalError e) { |
92 } catch (InternalError e) { |
92 fail("Caught InternalError instead of expected ZipError"); |
93 fail("Caught InternalError instead of expected ZipError"); |
93 } catch (Throwable t) { |
94 } catch (Throwable t) { |
94 unexpected(t); |
95 unexpected(t); |