Author: rfeng
Date: Wed Oct 4 11:04:25 2006
New Revision: 452957
URL: http://svn.apache.org/viewvc?view=rev&rev=452957
Log:
To honor xmlType if javaType is not present
Modified:
incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/property/SimplePropertyObjectFactory.java
Modified:
incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/property/SimplePropertyObjectFactory.java
URL:
http://svn.apache.org/viewvc/incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/property/SimplePropertyObjectFactory.java?view=diff&rev=452957&r1=452956&r2=452957
==============================================================================
---
incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/property/SimplePropertyObjectFactory.java
(original)
+++
incubator/tuscany/java/sca/kernel/core/src/main/java/org/apache/tuscany/core/property/SimplePropertyObjectFactory.java
Wed Oct 4 11:04:25 2006
@@ -46,7 +46,12 @@
}
if (instance == null) {
String text = value.getDocumentElement().getTextContent();
- TypeInfo xmlType = typeMapper.getXMLType(property.getJavaType());
+ TypeInfo xmlType = null;
+ if (property.getJavaType() == null) {
+ xmlType = new TypeInfo(property.getXmlType(), true, null);
+ } else {
+ xmlType = typeMapper.getXMLType(property.getJavaType());
+ }
if (xmlType == null) {
throw new IllegalArgumentException("Complex property is not
supported.");
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]