From 3d80930c4233d0c1f2528a589a2c995685a550bc Mon Sep 17 00:00:00 2001 From: jochen Date: Thu, 11 Mar 1999 22:49:01 +0000 Subject: [PATCH] jdk12 code (no workaround of ZipInputStream bug) git-svn-id: https://svn.code.sf.net/p/jode/code/trunk@362 379699f6-c40d-0410-875b-85095c16579e --- jode/jode/bytecode/SearchPath.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jode/jode/bytecode/SearchPath.java b/jode/jode/bytecode/SearchPath.java index 26910e1..2aca673 100644 --- a/jode/jode/bytecode/SearchPath.java +++ b/jode/jode/bytecode/SearchPath.java @@ -278,6 +278,7 @@ public class SearchPath { ZipEntry ze; while ((ze = zis.getNextEntry()) != null) { if (ze.getName().equals(filename)) { +///#ifdef JDK11 // The skip method in jdk1.1.7 ZipInputStream // is buggy. We return a wrapper that fixes // this. @@ -296,6 +297,9 @@ public class SearchPath { return skipped; } }; +///#else +/// return zis; +///#endif } zis.closeEntry(); }