You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Regis Xu (JIRA)" <ji...@apache.org> on 2007/07/26 05:30:31 UTC
[jira] Updated: (HARMONY-4545) [classlib][sql][java6]
javax.sql.rowset.RowSetMetaDataImpl#unWrap(Class) should not always
return null
[ https://issues.apache.org/jira/browse/HARMONY-4545?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Regis Xu updated HARMONY-4545:
------------------------------
Attachment: Harmony-4545.diff
May somebody pls try this patch? Thanks.
> [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
> Attachments: Harmony-4545.diff
>
>
> 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.