[
https://issues.apache.org/jira/browse/TUSCANY-1436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12513115
]
Fuhwei Lwo commented on TUSCANY-1436:
-------------------------------------
I have uploaded a patch to TUSCANY-1110 to return null if a Java class is not a
valid SDO type to take care of this problem.
> 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]