-
Enhancement
-
Resolution: Fixed
-
P4
-
8-pool
-
b06
-
generic
-
generic
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2215492 | 8 | Vladimir Kozlov | P4 | Resolved | Fixed | b08 |
JDK-2214914 | 7u2 | Vladimir Kozlov | P4 | Closed | Fixed | b08 |
Xueming Shen wrote:
Hi,
if I run
java Foo foo.jar
I got
--------------------------------------------------------------------------------------------
...
checking [Demo.java]
e.name :Demo.java
e.hash :-1540408531
e.method :0
e.size :26680
e.csize :26680
is=java.util.zip.ZipFile$ZipFileInputStream@184cc40
is.hash=25480256
..................................
--> is :java.util.zip.ZipFile$ZipFileInflaterInputStream@11dd4fb
is.hash :18732283
e.name :javax/swing/text/Utilities.class
e.hash :-1072011748
e.method :8
e.size :14526
e.csize :7016
java.io.IOException: Stream closed
at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:142)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at Foo.main(Foo.java:40)
..................................
It appears that the current ZipEntry "e" and InputStream "is" are replaced by an old pair
of "e" and "is", which should have been iterated, read, closed already, after the reading
started. And the reading ended with IOException "stream closed".
Hi,
if I run
java Foo foo.jar
I got
--------------------------------------------------------------------------------------------
...
checking [Demo.java]
e.name :Demo.java
e.hash :-1540408531
e.method :0
e.size :26680
e.csize :26680
is=java.util.zip.ZipFile$ZipFileInputStream@184cc40
is.hash=25480256
..................................
--> is :java.util.zip.ZipFile$ZipFileInflaterInputStream@11dd4fb
is.hash :18732283
e.name :javax/swing/text/Utilities.class
e.hash :-1072011748
e.method :8
e.size :14526
e.csize :7016
java.io.IOException: Stream closed
at java.util.zip.InflaterInputStream.ensureOpen(InflaterInputStream.java:67)
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:142)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at Foo.main(Foo.java:40)
..................................
It appears that the current ZipEntry "e" and InputStream "is" are replaced by an old pair
of "e" and "is", which should have been iterated, read, closed already, after the reading
started. And the reading ended with IOException "stream closed".
- backported by
-
JDK-2215492 Add regression test for 7068051
- Resolved
-
JDK-2214914 Add regression test for 7068051
- Closed
- relates to
-
JDK-7068051 SIGSEGV in PhaseIdealLoop::build_loop_late_post on T5440
- Closed