Changeset 15461


Ignore:
Timestamp:
10/29/20 16:55:05 (3 years ago)
Author:
Mark Evenson
Message:

Fix getting the stream from recursive jar entries

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/abcl/src/org/armedbear/lisp/ZipCache.java

    r15460 r15461  
    217217      = new LinkedHashMap<JarPathname, ByteArrayOutputStream>();
    218218
     219    boolean populated = false;
     220
    219221    public InputStream getEntryAsInputStream(JarPathname entry) {
     222      if (!populated) {
     223        populateAllEntries();
     224      }
     225
    220226      ByteArrayOutputStream bytes = contents.get(entry);
    221227      if (bytes != null) {
     
    224230      return null;
    225231    }
    226 
    227     boolean populated = false;
    228232
    229233    public ZipEntry getEntry(JarPathname entry) {
Note: See TracChangeset for help on using the changeset viewer.