[
https://issues.apache.org/jira/browse/TUSCANY-1436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513068
]
Raymond Feng commented on TUSCANY-1436:
---------------------------------------
>From the raw java class (List.class), we cannot tell if it's List<String>. So
>it's up to you to decide what SDO type to return.
The test case might be a bit misleading because I don't really expect to get a
SDO type back from any java class. A null instead of ClassCastException would
be good enough.
Thanks,
Raymond
> TypeHelper.getType(java.util.List.class) throws ClassCastException
> ------------------------------------------------------------------
>
> Key: TUSCANY-1436
> URL: https://issues.apache.org/jira/browse/TUSCANY-1436
> Project: Tuscany
> Issue Type: Bug
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-beta1, Java-SDO-1.0
> Reporter: Raymond Feng
> Priority: Critical
>
> The following simple test case fails:
> package org.apache.tuscany.sdo.test;
> import java.util.List;
> import junit.framework.TestCase;
> import commonj.sdo.helper.TypeHelper;
> /**
> * @version $Rev$ $Date$
> */
> public class TypeHelperTestCase extends TestCase {
> public void testGetType() {
> assertTrue(TypeHelper.INSTANCE.getType(List.class) instanceof
> commonj.sdo.Type);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]