diff options
Diffstat (limited to 'java/sca/modules/databinding-jaxb/src/main')
-rw-r--r-- | java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java index 2f7b9dc76d..03ee5c9dbd 100644 --- a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java +++ b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java @@ -148,7 +148,8 @@ public final class JAXBContextHelper { element = value; } if (element == null) { - element = new JAXBElement(name, type, value); + // For local elements, we still have to produce xsi:type + element = new JAXBElement(name, Object.class, value); } return element; } |