diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-19 16:06:22 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-19 16:06:22 +0000 |
commit | 40f139f0e78679d6e9ce837de910f603f819b917 (patch) | |
tree | 19454d22ef7babdb542f6eede0f51f2e4d51cd7d /java/sca/modules/databinding-jaxb/src/main | |
parent | f72084b5a21ee94b86d2d1bc3aadd98b79524711 (diff) |
Produce xsi:type for local elements in JAXB
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@756067 13f79535-47bb-0310-9956-ffa450edef68
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; } |