You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2009/12/01 00:12:20 UTC
[jira] Commented: (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:comment-tabpanel&focusedCommentId=12783928#action_12783928 ]
Hudson commented on HARMONY-6394:
---------------------------------
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)
> [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.