### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core Index: compiler/org/eclipse/jdt/internal/compiler/util/Util.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/util/Util.java,v retrieving revision 1.72 diff -u -r1.72 Util.java --- compiler/org/eclipse/jdt/internal/compiler/util/Util.java 7 Mar 2009 00:59:03 -0000 1.72 +++ compiler/org/eclipse/jdt/internal/compiler/util/Util.java 7 May 2009 01:36:27 -0000 @@ -498,8 +498,9 @@ InputStream stream = null; try { - stream = zip.getInputStream(ze); - if (stream == null) throw new IOException("Invalid zip entry name : " + ze.getName()); //$NON-NLS-1$ + InputStream inputStream = zip.getInputStream(ze); + if (inputStream == null) throw new IOException("Invalid zip entry name : " + ze.getName()); //$NON-NLS-1$ + stream = new BufferedInputStream(inputStream); return getInputStreamAsByteArray(stream, (int) ze.getSize()); } finally { if (stream != null) {