TypeHelper.getType(Class ...) either returns unexpected Type or throws
ClassCastException for java .lang.String or other simple java types
------------------------------------------------------------------------------------------------------------------------------------------
Key: TUSCANY-358
URL: http://issues.apache.org/jira/browse/TUSCANY-358
Project: Tuscany
Type: Bug
Components: Java SDO Implementation
Versions: M1, Mx
Reporter: Raymond Feng
Assigned to: Frank Budinsky
Priority: Critical
I ran into two problems:
1) If I happens to initialize EMF XMLTypePackage,
TypeHelper.getType(String.class) throws a ClassCastException
java.lang.ClassCastException: org.eclipse.emf.ecore.impl.EDataTypeImpl
incompatible with commonj.sdo.Type
at
org.apache.tuscany.sdo.helper.TypeHelperImpl.getType(TypeHelperImpl.java:92)
2) Otherwise
I received [EMAIL PROTECTED] (name: LangType) (instanceClassName:
java.lang.String) (serializable: true)
and the EPackage is:
[EMAIL PROTECTED] (name: namespace) (nsURI:
http://www.w3.org/XML/1998/namespace, nsPrefix: xml)
It seems that the SDO spec doesn't well define the behavior.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira