harmony-commits mailing list archives

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