harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-4792) [classlib][beans] NullPersistenceDelegate.instantiate(Object, Encoder) should return null
Date Fri, 14 Sep 2007 02:32:32 GMT

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

Tony Wu reassigned HARMONY-4792:
--------------------------------

    Assignee: Tony Wu

> [classlib][beans] NullPersistenceDelegate.instantiate(Object, Encoder) should return
null
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4792
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4792
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Regis Xu
>            Assignee: Tony Wu
>         Attachments: nulldelegate.zip
>
>
> below test case pass in ri but fail in harmony
> public void test_instantiate_LObject_LEncoder() throws Exception {
>         Encoder enc = new Encoder();
>         PersistenceDelegate pd = enc.getPersistenceDelegate(null);
>         Expression exp = pd.instantiate(null, enc);
>         assertNull(exp);
>         
>         exp = pd.instantiate(new Object(), enc);
>         assertNull(exp);
>         
>         exp = pd.instantiate(null, null);
>         assertNull(exp);
>         
>         exp = pd.instantiate(new Object(), null);
>         assertNull(exp);
>     }
> and below test case pass in ri but throws NPE in hamrony
>     public void test_writeObject_LObject_LEncoder() {
>         Encoder enc = new Encoder();
>         PersistenceDelegate pd = enc.getPersistenceDelegate(null);
>         pd.writeObject(null, null);
>     }
> I'll create a patch for this soon

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