Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 94609 invoked from network); 12 Oct 2009 06:56:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Oct 2009 06:56:55 -0000 Received: (qmail 21656 invoked by uid 500); 12 Oct 2009 06:56:55 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 21595 invoked by uid 500); 12 Oct 2009 06:56:55 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 21586 invoked by uid 99); 12 Oct 2009 06:56:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 06:56:55 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 06:56:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 49751234C045 for ; Sun, 11 Oct 2009 23:56:31 -0700 (PDT) Message-ID: <2092408753.1255330591285.JavaMail.jira@brutus> Date: Sun, 11 Oct 2009 23:56:31 -0700 (PDT) From: "Mark Hindess (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-6350) [archive] InflaterOutputStream.write(-1) should throw ZipException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [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.