You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Gregory Shimansky (JIRA)" <ji...@apache.org> on 2007/01/16 20:55:27 UTC
[jira] Closed: (HARMONY-1196) Class.forName(null) throws different
exceptions in RI and Harmony
[ 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