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] Created: (HARMONY-6394) [classlib][archive] ZipFile.getInputStream implements available() differently to the RI
Date Mon, 30 Nov 2009 11:48:20 GMT
[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
         Attachments: 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