JDK-7087947 : Add regression test for 7068051
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 8-pool
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2011-09-07
  • Updated: 2013-04-24
  • Resolved: 2011-11-28
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u2Fixed 8Fixed hs22Fixed
Related Reports
Relates :  
Description
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".

Comments
EVALUATION See main CR
2011-09-24

EVALUATION See main CR
2011-09-12

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-comp/hotspot/rev/fdcb1e828d53
2011-09-09