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 08:56:31 UTC
[jira] Created: (HARMONY-6350) [archive]
InflaterOutputStream.write(-1) should throw ZipException
[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.
[jira] Resolved: (HARMONY-6350) [archive]
InflaterOutputStream.write(-1) should throw ZipException
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-6350?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Hindess resolved HARMONY-6350.
-----------------------------------
Resolution: Won't Fix
Closing as non-bug difference. See:
http://markmail.org/thread/3y6ecxja4shjmwxl
for justification.
Failing test removed in r824241.
> [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.
[jira] Closed: (HARMONY-6350) [archive]
InflaterOutputStream.write(-1) should throw ZipException
Posted by "Mark Hindess (JIRA)" <ji...@apache.org>.
[ 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.