cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject [05/33] cxf git commit: [CXF-6959] Workaround for bug when loading XmlSchema instance
Date Mon, 11 Jul 2016 00:14: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/b8aea467
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/b8aea467
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/b8aea467

Branch: refs/heads/master-jaxrs-2.1
Commit: b8aea4672fbb2cd7c5c8b5213568492a17c27861
Parents: 636252c
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:56:27 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/b8aea467/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