summaryrefslogtreecommitdiffstats
path: root/java/sca/modules/databinding-jaxb
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-02-17 23:36:40 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2009-02-17 23:36:40 +0000
commit7ca64bbd97a37d88b9dfb3bb7299fd21c73205cb (patch)
tree56a1c2b11708aacc1b4126c2f4c55d6426c8a697 /java/sca/modules/databinding-jaxb
parentfb125371118d22e2242cef9ee315dba592208028 (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@745298 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/databinding-jaxb')
-rw-r--r--java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java b/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java
index 26da0132e8..d616b9328e 100644
--- a/java/sca/modules/databinding-jaxb/src/main/java/org/apache/tuscany/sca/databinding/jaxb/JAXBContextCache.java
+++ b/java/sca/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;
}