summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-10-05 07:22:58 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2011-10-05 07:22:58 +0000
commit2e57e301aa5a5c72e538e731c04cfb9a6c058e69 (patch)
treeb5cdcac2df6b6c2b3a3e7cb89b8742e522bf2c18 /sca-java-2.x/trunk/modules/builder/src/main/java/org/apache
parent1f450514612928a3134617f1477fbaf05919d728 (diff)
Change back to use getSchemaDocument instead of getAllSchema()[0]. This was changed back in r1043206 to try to make the Tuscany code compatible with diff version of xmlSchema but this can cause loops in xmlschema so go back to getSchemaDocument and require using the Tuscany level of xmlSchema
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1179072 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/builder/src/main/java/org/apache')
-rw-r--r--sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
index c525fd7b28..c1796c3ca2 100644
--- a/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
+++ b/sca-java-2.x/trunk/modules/builder/src/main/java/org/apache/tuscany/sca/builder/impl/ComponentBuilderImpl.java
@@ -738,8 +738,7 @@ public class ComponentBuilderImpl {
// create schema factory for XML schema
SchemaFactory factory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
- // Equivalent to getSchema().getSchemaDocument(), but allows us to support older versions of XmlSchema
- Document schemaDom = xsdDefinition.getSchema().getAllSchemas()[0];
+ Document schemaDom = xsdDefinition.getSchema().getSchemaDocument();
String valueSchema = null;
Schema schema = null;