Harmony
  1. Harmony
  2. HARMONY-6394

[classlib][archive] ZipFile.getInputStream implements available() differently to the RI

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.0M12
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      static final String NAME = "javax/swing/text/html/parser/html32.bdtd";

      public void test() throws IOException

      { JarFile jar = new JarFile("swing.jar"); ZipEntry ze = jar.getEntry(NAME); InputStream is = jar.getInputStream(ze); System.out.println("Size = " + ze.getSize()); System.out.println("Available = " + is.available()); jar.close(); }

      On Harmony it prints:
      Size = 51140
      Available = 1

      On the RI it prints:
      Size = 51140
      Available = 51140

      We have recently deviated from compatibility with the RI in this matter.

      1. harmony-6394.patch
        2 kB
        Tim Ellison
      2. harmony-6394-2.patch
        2 kB
        Tim Ellison

        Activity

        Hide
        Tim Ellison added a comment -

        Revised patch.

        Show
        Tim Ellison added a comment - Revised patch.
        Hide
        Tim Ellison added a comment -

        Fixed in ARCHIVE module at repo revision r885602.

        Show
        Tim Ellison added a comment - Fixed in ARCHIVE module at repo revision r885602.
        Hide
        Hudson added a comment -

        Integrated in Harmony-1.5-head-linux-x86_64 #571 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/571/)
        Fix for ([classlib][archive] ZipFile.getInputStream implements available() differently to the RI)

        Show
        Hudson added a comment - Integrated in Harmony-1.5-head-linux-x86_64 #571 (See http://hudson.zones.apache.org/hudson/job/Harmony-1.5-head-linux-x86_64/571/ ) Fix for ( [classlib] [archive] ZipFile.getInputStream implements available() differently to the RI)

          People

          • Assignee:
            Tim Ellison
            Reporter:
            Tim Ellison
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development