Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 88308 invoked from network); 16 Jan 2007 19:55:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Jan 2007 19:55:49 -0000 Received: (qmail 23672 invoked by uid 500); 16 Jan 2007 19:55:55 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 23655 invoked by uid 500); 16 Jan 2007 19:55: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 23646 invoked by uid 99); 16 Jan 2007 19:55:55 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Jan 2007 11:55:55 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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, 16 Jan 2007 11:55:48 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F24247141A3 for ; Tue, 16 Jan 2007 11:55:27 -0800 (PST) Message-ID: <7943264.1168977327974.JavaMail.jira@brutus> Date: Tue, 16 Jan 2007 11:55:27 -0800 (PST) From: "Gregory Shimansky (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-1196) Class.forName(null) throws different exceptions in RI and Harmony 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-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gregory Shimansky closed HARMONY-1196. -------------------------------------- Resolution: Cannot Reproduce Assignee: Gregory Shimansky Closed by request. > Class.forName(null) throws different exceptions in RI and Harmony > ----------------------------------------------------------------- > > Key: HARMONY-1196 > URL: https://issues.apache.org/jira/browse/HARMONY-1196 > Project: Harmony > Issue Type: Bug > Components: Non-bug differences from RI > Environment: Windows XP > Reporter: Anton Luht > Assigned To: Gregory Shimansky > Priority: Minor > Attachments: class_npe.patch > > > The following code: > import java.lang.reflect.*; > public class Test { > public static void main(String[] args) throws Throwable { > Class clz = Class.forName(null); > } > } > prints in RI: > Exception in thread "main" java.lang.NullPointerException > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Unknown Source) > at Test.main(Test.java:5) > and in Harmony > java version "1.5.0" > pre-alpha : not complete or compatible > svn = r431586, (Aug 15 2006), Windows/ia32/msvc 1310, debug build > http://incubator.apache.org/harmony > java.lang.ClassNotFoundException > at java.lang.Class.forName() > at java.lang.Class.forName() > at Test.main(Test.java:5) > The code that makes Harmony throw NPE in this case is attached -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira