diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-17 23:41:16 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-17 23:41:16 +0000 |
commit | 2ff2b77f2767342a4684ce523c611a0005c0e0c6 (patch) | |
tree | cbe0d79bd237534e3ed22a58f2a339da35907547 /branches/sca-java-1.x/modules/databinding-jaxb/src | |
parent | 7ca64bbd97a37d88b9dfb3bb7299fd21c73205cb (diff) |
Fix the JAXBException if package-info annotated with @XmlSchema is present without ObjectFactory
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@745299 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/modules/databinding-jaxb/src')
-rw-r--r-- | branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java b/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java index 26da0132e8..d616b9328e 100644 --- a/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java +++ b/branches/sca-java-1.x/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java @@ -42,7 +42,6 @@ import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Marshaller; import javax.xml.bind.Unmarshaller; -import javax.xml.bind.annotation.XmlSchema; import javax.xml.transform.Source; import org.apache.tuscany.sca.databinding.util.LRUCache; @@ -195,6 +194,9 @@ public class JAXBContextCache { // Ignore } + // [rfeng] If no ObjectFactory or jaxb.index is present, JAXBContext.newInstance(contextPath, classloader) + // will fail + /* try { Class<?> cls = forName(p + ".package-info", false, cl); if (cls != null) { @@ -205,6 +207,7 @@ public class JAXBContextCache { } catch (Throwable e) { // Ignore } + */ return false; } |