harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2162) [luni-kernel] Class.forName throws IllegalArgumentException while classname includes '%'
Date Mon, 13 Nov 2006 11:31:38 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2162?page=comments#action_12449322 ] 
            
Alexey Varlamov commented on HARMONY-2162:
------------------------------------------

Any ideas how to fix this? Straightforward way is to catch RuntimeException and throw ClassNotFoundException
instead (inside Class.forName() ) ...

> [luni-kernel] Class.forName throws IllegalArgumentException while classname includes
'%'
> ----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2162
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2162
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Leo Li
>            Priority: Minor
>
> Here is the testcase:
>           public void testLoadClass()
>     {
>         try
>         {
>             Class.forName("%");
>             fail("should throw ClassNotFoundException");
>         }
>         catch(ClassNotFoundException e)
>         {
>             //expected
>         }
> RI passes
> Harmony fails
>     }

-- 
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

        

Mime
View raw message