Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 64877 invoked from network); 21 Jul 2006 23:36:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 21 Jul 2006 23:36:29 -0000 Received: (qmail 30580 invoked by uid 500); 21 Jul 2006 23:36:29 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 30553 invoked by uid 500); 21 Jul 2006 23:36:29 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 30542 invoked by uid 99); 21 Jul 2006 23:36:29 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 16:36:29 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jul 2006 16:36:28 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B38FC41000C for ; Fri, 21 Jul 2006 23:34:14 +0000 (GMT) Message-ID: <23442752.1153524854732.JavaMail.jira@brutus> Date: Fri, 21 Jul 2006 16:34:14 -0700 (PDT) From: "Nathan Beyer (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Closed: (HARMONY-899) JarEntry.getSodeSigners() throws NPE if certificates are null In-Reply-To: <16206845.1153142593908.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-899?page=all ] Nathan Beyer closed HARMONY-899. -------------------------------- verified > JarEntry.getSodeSigners() throws NPE if certificates are null > ------------------------------------------------------------- > > Key: HARMONY-899 > URL: http://issues.apache.org/jira/browse/HARMONY-899 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: Windows XP professional > Reporter: Anton Luht > Assigned To: Nathan Beyer > Priority: Minor > Attachments: patch.txt > > > VM + classlib revision 422694, build: msvc debug > Harmony throws unspecified NullPointerException for java.util.jar.JarEntry. getCodeSigners() while > RI returns "null" value, which is correct. > Java 1.5.0 spec says: > "Returns: > the CodeSigner objects for this entry, or null if none. > ". > import java.util.jar.JarEntry; > import java.security.CodeSigner; > public class Test { > public static void main(String args[]) { > JarEntry localJarEntry = new JarEntry("aaa"); > try > { > localJarEntry.getCodeSigners(); > System.out.println("getCodeSigners()=" +localJarEntry.getCodeSigners()); > } > catch(Exception e) > { > e.printStackTrace(); > } > } > } > OUTPUT: > SUN > java version "1.5.0_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05) > Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode) > getCodeSigners()=null > Harmony: > java.lang.NullPointerException > at java.util.jar.JarEntry.getCodeSigners(JarEntry.java:139) > at java.util.jar.JarEntry.getCodeSigners(JarEntry.java:123) > at Test.main(Test.java:9) > Please see the patch with JUnit test and fix for this issue attached -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira