Re: [jira] Commented: (HARMONY-81) java.util.zip.Inflater.infalate() throws DataFormatException instead of actual number of uncompressed bytes

2006-07-26 Thread Sergey Soldatov
Mikhail, Any comments so far ? :) On 7/21/06, Sergey Soldatov <[EMAIL PROTECTED]> wrote: Well, good question :) As I already mentioned in comments for this issue, inflate(...) should return 0 if needsInput() or or needsDictionary() is required. And the only exception which can be thrown is D

Re: [jira] Commented: (HARMONY-81) java.util.zip.Inflater.infalate() throws DataFormatException instead of actual number of uncompressed bytes

2006-07-21 Thread Sergey Soldatov
Well, good question :) As I already mentioned in comments for this issue, inflate(...) should return 0 if needsInput() or or needsDictionary() is required. And the only exception which can be thrown is DataFormatException. So, any internal error in zlib which is not related to data format should

Re: [jira] Commented: (HARMONY-81) java.util.zip.Inflater.infalate() throws DataFormatException instead of actual number of uncompressed bytes

2006-07-12 Thread Mikhail Loenko
Sergey why you think we should return 0 in case of Z_STREAM_ERROR? Don't we need just check for 0 the 'len' parameter? Thanks, Mikhail 2006/7/12, Sergey Soldatov (JIRA) <[EMAIL PROTECTED]>: [ http://issues.apache.org/jira/browse/HARMONY-81?page=comments#action_12420584 ] Sergey Soldatov