You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2009/11/30 23:39:20 UTC

[jira] Resolved: (HARMONY-6394) [classlib][archive] ZipFile.getInputStream implements available() differently to the RI

     [ https://issues.apache.org/jira/browse/HARMONY-6394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tim Ellison resolved HARMONY-6394.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 5.0M12
         Assignee: Tim Ellison

Fixed in ARCHIVE module at repo revision r885602.


> [classlib][archive] ZipFile.getInputStream implements available() differently to the RI
> ---------------------------------------------------------------------------------------
>
>                 Key: HARMONY-6394
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6394
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Tim Ellison
>            Assignee: Tim Ellison
>             Fix For: 5.0M12
>
>         Attachments: harmony-6394-2.patch, harmony-6394.patch
>
>
>  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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.