You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tony Wu (JIRA)" <ji...@apache.org> on 2007/09/14 04:32:32 UTC
[jira] Assigned: (HARMONY-4792) [classlib][beans]
NullPersistenceDelegate.instantiate(Object, Encoder) should return null
[ 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.