Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 80431 invoked from network); 12 Feb 2008 04:24:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2008 04:24:31 -0000 Received: (qmail 74757 invoked by uid 500); 12 Feb 2008 04:24:25 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 74726 invoked by uid 500); 12 Feb 2008 04:24:25 -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 74716 invoked by uid 99); 12 Feb 2008 04:24:25 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Feb 2008 20:24:25 -0800 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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 04:23:48 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 70CD1714044 for ; Mon, 11 Feb 2008 20:24:08 -0800 (PST) Message-ID: <27565693.1202790248459.JavaMail.jira@brutus> Date: Mon, 11 Feb 2008 20:24:08 -0800 (PST) From: "Stepan Mishura (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-5473) [classlib][archive] Manifest file with empty line proves IOException In-Reply-To: <20291604.1202404748695.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12567947#action_12567947 ] Stepan Mishura commented on HARMONY-5473: ----------------------------------------- Alexey, Evgeniya, the commit r620461 does not include a regression test. Is it possible to create it? Could you add it? > [classlib][archive] Manifest file with empty line proves IOException > -------------------------------------------------------------------- > > Key: HARMONY-5473 > URL: https://issues.apache.org/jira/browse/HARMONY-5473 > Project: Harmony > Issue Type: Bug > Components: Classlib > Reporter: Evgeniya Maenkova > Assignee: Alexey Petrenko > Priority: Critical > Attachments: archive.patch, archive.patch, hyts_manifest1.mf, MANIFEST.MF, MANIFEST2.MF > > > I cannot start some of my apps, because their jar-files contain manifests with empty lines, proving IOException on Harmony. > The situation can be reproduced by manifest file with empty line creation and invoking new Manifest(InputStream). Manifest files which proves this will be attached. > Test case output: > $ /cygdrive/c/Harmony_to_run/trunk/working_vm/build/win_ia32_msvc_release/deploy/jdk/jre/bin/java Test MANIFEST2.MF > Uncaught exception in main: > java.io.IOException: Invalid attribute > at java.util.jar.InitManifest.addAttribute(InitManifest.java:282) > at java.util.jar.InitManifest.(InitManifest.java:71) > at java.util.jar.Manifest.read(Manifest.java:173) > at java.util.jar.Manifest.(Manifest.java:76) > at Test.main(Test.java:8) > $ /cygdrive/w/UBS/Builds/jdk1.6.0_win32/bin/java Test MANIFEST2.MF > end > Test case is: > import java.io.FileInputStream; > import java.util.jar.Manifest; > public class Test { > public static void main(String[] args) throws Exception { > String fileName = args[0]; > FileInputStream fs = new FileInputStream(fileName); > Manifest m = new Manifest(fs); > fs.close(); > System.out.println("end"); > } > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.