cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject [5/5] cxf git commit: [CXF-6959] Workaround for bug when loading XmlSchema instance
Date Mon, 04 Jul 2016 14:59:10 GMT
[CXF-6959] Workaround for bug when loading XmlSchema instance


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/ea98009d
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/ea98009d
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/ea98009d

Branch: refs/heads/origin/3.1.x-fixes
Commit: ea98009d9074859f3be646366137a01d592bd1f5
Parents: 1bdbb00b
Author: Christian Schneider <chris@die-schneider.net>
Authored: Mon Jul 4 16:56:27 2016 +0200
Committer: Christian Schneider <chris@die-schneider.net>
Committed: Mon Jul 4 16:58:50 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/ea98009d/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
----------------------------------------------------------------------
diff --git a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
index b80ffe0..91d88d7 100644
--- a/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
+++ b/rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/type/XMLTypeCreator.java
@@ -119,8 +119,8 @@ public class XMLTypeCreator extends AbstractTypeCreator {
         String path = "/META-INF/cxf/aegis.xsd";
         InputStream is = XMLTypeCreator.class.getResourceAsStream(path);
         if (is != null) {
-            SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
             try {
+                SchemaFactory schemaFactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
                 Schema aegisSchema = schemaFactory.newSchema(new StreamSource(is));
                 AEGIS_DOCUMENT_BUILDER_FACTORY.setSchema(aegisSchema);
             } catch (Throwable e) {


Mime
View raw message