diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-18 04:43:15 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-18 04:43:15 +0000 |
commit | 175eef1031996bf177675620242a5a0ce865766c (patch) | |
tree | 1503665852bc8ca39a0a1c24c1c490d6597fb06e /branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache | |
parent | 50a856b26b629cbbfb0b18c9f8f8c8418209d19c (diff) |
Fix the J2W generation issue which misses the target namespace
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@755474 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | branches/sca-java-1.x/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/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java b/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java index 5265184ba6..01989759b8 100644 --- a/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java +++ b/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextHelper.java @@ -396,7 +396,8 @@ public class JAXBContextHelper { typeQName = new QName(typeNamespace, typeName); } else { XmlEnum xmlEnum = javaType.getAnnotation(XmlEnum.class); - if (xmlEnum != null) { + // POJO can have the @XmlSchema on the package-info too + if (xmlEnum != null || namespace != null) { name = jaxbDecapitalize(javaType.getSimpleName()); typeQName = new QName(namespace, name); } |