问题
Does anyone know if this bug http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=2192186
has been resolved yet? It is causing issues on our side in data collection from archive or archives. Looks like this is a very old issue: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4691425
If it is resolved, please let me know jvm version that contains the fix.
回答1:
I check it again and released that bug is already fixed (check its status and resolution fields). Here is related commit. Make sure that you are using latest Java version.
回答2:
Sorry for answering over a year, late but I thought the answer would help others because I too had this problem and it took me a while to find which version.
The answer is the GZIPInputStream concatenation bug fix was released in Java 6u21-rev-b08 http://www.oracle.com/technetwork/java/javase/documentation/overview-156328.html
However, it looks like the official Java 6u21 release was based on build 7 so that fix probably isn't in the official release until Java 6u22 even though it does not appear in the release notes.
I would think that this means it is in all versions of Java 7 since 6u22 came out a year before Java 7 was released. It is definitely in the latest Java 7 release.
来源:https://stackoverflow.com/questions/13749891/gzipinputstream-fails-to-read-concatenated-gz-files-bug-resolved