harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Liang (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (HARMONY-2510) [classlib][archive]Inflater.inflate fails to throw DataFormatException while the uncompression method is not acceptable.
Date Tue, 12 Dec 2006 06:02:23 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2510?page=all ]

Richard Liang resolved HARMONY-2510.
------------------------------------

    Resolution: Fixed

Hello Leo,

The patch has been applied at revision r486042, thank you for this enhancement. Would you
please verify this issue has been fully fixed as you expected.

Best regards,
Richard

> [classlib][archive]Inflater.inflate fails to throw DataFormatException while the uncompression
method is not acceptable.
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2510
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2510
>             Project: Harmony
>          Issue Type: Bug
>            Reporter: Leo Li
>         Assigned To: Richard Liang
>         Attachments: patch-2510.diff
>
>
> Here is the testcase:
> public void test() throws Exception {
>         Inflater inflater = new Inflater();
>         inflater.setInput(new byte[] { -1 });
>         byte[] b = new byte[1024];
>         try {
>             inflater.inflate(b);
>             fail("should throw DataFormatException");
>         } catch (DataFormatException e) {
>             // expected
>         } finally {
>             inflater.end();
>         }
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message