--- old/src/share/classes/java/util/jar/Manifest.java Mon Mar 12 09:24:02 2012 +++ new/src/share/classes/java/util/jar/Manifest.java Mon Mar 12 09:24:01 2012 @@ -400,6 +400,8 @@ public byte peek() throws IOException { if (pos == count) fill(); + if (pos == count) + return -1; // nothing left in buffer return buf[pos]; }