harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-6394) [classlib][archive] ZipFile.getInputStream implements available() differently to the RI
Date Fri, 04 Dec 2009 17:54:20 GMT

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

Tim Ellison closed HARMONY-6394.
--------------------------------


> [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.


Mime
View raw message