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-4545) [classlib][sql][java6] javax.sql.rowset.RowSetMetaDataImpl#unWrap(Class<T>) should not always return null
Date Thu, 26 Jul 2007 03:10:31 GMT
[classlib][sql][java6] javax.sql.rowset.RowSetMetaDataImpl#unWrap(Class<T>) should not
always return null
---------------------------------------------------------------------------------------------------------

                 Key: HARMONY-4545
                 URL: https://issues.apache.org/jira/browse/HARMONY-4545
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Regis Xu


Below test case passed on ri but faild on harmony

    public void test_unWrap_CClass() throws Exception {
        Object o = metaDataImpl.unwrap(Integer.class);
        assertNotNull(o);
        assertTrue(o instanceof RowSetMetaDataImpl);
        
        o = metaDataImpl.unwrap(Comparable.class);
        assertNotNull(o);
        assertTrue(o instanceof RowSetMetaDataImpl);
        
        o = metaDataImpl.unwrap(null);
        assertNotNull(o);
        assertTrue(o instanceof RowSetMetaDataImpl);
    }

so i think we should return a instance of RowSetMetaDataImpl instand of null value.

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