You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Mark Hindess (JIRA)" <ji...@apache.org> on 2009/10/12 09:02:31 UTC

[jira] Closed: (HARMONY-6350) [archive] InflaterOutputStream.write(-1) should throw ZipException

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

Mark Hindess closed HARMONY-6350.
---------------------------------


> [archive] InflaterOutputStream.write(-1) should throw ZipException
> ------------------------------------------------------------------
>
>                 Key: HARMONY-6350
>                 URL: https://issues.apache.org/jira/browse/HARMONY-6350
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Mark Hindess
>            Assignee: Mark Hindess
>            Priority: Minor
>
> The optimizations applied in HARMONY-6346 mean that the behaviour of inflating a single -1 byte has changed.  This can be reproduced with:
>             int inflated = 0;
>             byte[] buf = new byte[1024];
>             Inflater inf = new Inflater();
>             inf.setInput(new byte[] { (byte) -1 }, 0, 1);
>             inflated = inf.inflate(buf);
> which throws "java.util.zip.DataFormatException: unknown compression method" on the RI but no exception on Harmony.

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