Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4368149

Unix: libs_api_tests/common/java_util/zip/ZipInputStream/readTests fails

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.3.0
    • core-libs
    • x86, sparc
    • linux, solaris_8



      Name: dkC103137 Date: 09/04/2000


       jdk version:
      java version "1.3.0rc1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0rc1-b17)

      Java HotSpot(TM) Client VM (build 1.3.0rc1-b17, mixed mode)
      Java HotSpot(TM) Server VM (build 1.3.0rc1-b17, mixed mode)
      Classic VM (build 1.3.0rc1-b17, green threads, nojit)

       Testbase location:
      /net/ultraowl.eng/export/ultraowl1/javatb/testbase/src/misc

      Test libs_api_tests/common/java_util/zip/ZipInputStream/readTests#Test03 from testbase_ss fails in
      Linux and Solaris Kestrel JDK. The test case Test03 opens invalid zip file as ZipInputStream object
      and invokes getNextEntry(). Then it checks if expected ZipException is thrown.

      Please see output of the test below:
      -----------------------------------------------------------------
      Test 1: input stream = null
      Expected NullPointerException thrown
      Test 2: read all entries in ZIP file
      Number of entries: 48
      Total number of bytes read: 78947
      Test 3: invalid zip file
      ZIP entry: null
      Number of bytes read: -1
      Test 3 Failed
      ZipException was not thrown
      Test 4: read from valid zip file
      ZIP entry: bingo/game/GameParameters.java
      Number of bytes read: 2620
       
       ( chunk of source code skipped )

      Total number of bytes read: 2620
      Test 5: len > buf.length-off
      ZIP entry: bingo/game/GameParameters.java
      Expected IndexOutOfBoundsException thrown
      Test 6: len < 0
      ZIP entry: bingo/game/GameParameters.java
      Expected IndexOutOfBoundsException thrown
      Test 7: off < 0
      ZIP entry: bingo/game/GameParameters.java
      Expected IndexOutOfBoundsException thrown
      Test 8: off > buf.length
      ZIP entry: bingo/game/GameParameters.java
      Expected IndexOutOfBoundsException thrown
      Test 9: read len bytes
      ZIP entry: bingo/game/GameParameters.java
      Number of bytes read: 64
      package bingo.game;

      import java.util.Properties;
      import bingo.sTest 10: read len bytes into buf starting at off
      ZIP entry: bingo/game/GameParameters.java

      import java.util.Properties;
      Number of bytes read: 57
      112 p
      Test 11: read after end of stream has been reached
      ZIP entry: bingo/game/GameParameters.java
      Number of bytes skipped: 2620
      Number of bytes read: -1
      Test 12: read before ZIP entry retrieved
      Number of bytes read: -1
      Pass count: 11
      Fail count: 1
      Test for ZipInputStream.read Failed
      ---------------------------------------------------------

      ======================================================================

            sherman Xueming Shen
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: