Issue seen when the inner Manifest.FastInputStream.peek() method is called just as we hit EOF of main buffer being parsed (the manifest input file)
Simple fix involves getting peek() to return -1 if a fill() request fails to read anything. webrev : http://cr.openjdk.java.net/~coffeys/webrev.7148584.jdk8/ Bug report : http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7148584 regards, Sean.