Return-Path: X-Original-To: apmail-ant-notifications-archive@minotaur.apache.org Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 725CC17E69 for ; Fri, 18 Sep 2015 14:22:14 +0000 (UTC) Received: (qmail 21533 invoked by uid 500); 18 Sep 2015 14:22:11 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 21491 invoked by uid 500); 18 Sep 2015 14:22:11 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 21482 invoked by uid 99); 18 Sep 2015 14:22:11 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Sep 2015 14:22:11 +0000 Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPS id 056401A006D for ; Fri, 18 Sep 2015 14:22:11 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id 13D836046C; Fri, 18 Sep 2015 14:22:09 +0000 (UTC) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: [Bug 58428] New: Java 5 fails to run jar file due to Zip64 Date: Fri, 18 Sep 2015 14:22:09 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Version: 1.9.4 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: msunde@tillnow.com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=58428 Bug ID: 58428 Summary: Java 5 fails to run jar file due to Zip64 Product: Ant Version: 1.9.4 Hardware: PC Status: NEW Severity: normal Priority: P2 Component: Core tasks Assignee: notifications@ant.apache.org Reporter: msunde@tillnow.com We have an empty jar file that is getting created, but fails to load in java 1.5. Bug 54762 introduced a flag to turn off the Zip64 functionality in jars, but there appears to be a code path where it is not kicking in. In Zip.java, there is a call to createEmptyZip() which is overwritten in Jar.java. The implementation in Jar.java does: zOut = new ZipOutputStream(getDestFile()); But is missing this line: zOut.setUseZip64(zip64Mode.getMode()); -- You are receiving this mail because: You are the assignee for the bug.