harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Closed: (HARMONY-2760) [classlib][security]Provider.constructor throws NullPointerException while name or info is null while RI does not.
Date Fri, 13 Apr 2007 02:42:15 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Leo Li closed HARMONY-2760.
---------------------------


> [classlib][security]Provider.constructor throws NullPointerException while name or info
is null while RI does not.
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2760
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2760
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Paulex Yang
>         Attachments: patch-2760.diff
>
>
> class MyProvider extends Provider {               
>         MyProvider(String name, double version, String info) {
>             super(name, version, info);
>         }
> }
> public void testConstructor() {
> 	MyProvider myProvider = new MyProvider(null, 1, null);
> 	assertNull(myProvider.getName());
> 	assertNull(myProvider.getInfo());
> 	assertEquals("null", myProvider.getProperty("Provider.id name"));
> 	assertEquals("null", myProvider.getProperty("Provider.id info"));
> }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message