cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1186868 - /cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
Date Thu, 20 Oct 2011 15:53:08 GMT
Author: dkulp
Date: Thu Oct 20 15:53:08 2011
New Revision: 1186868

URL: http://svn.apache.org/viewvc?rev=1186868&view=rev
Log:
Fix issues if the systemId passed to ERU is an invalid URI.  A different
exception is thrown in that case.

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java?rev=1186868&r1=1186867&r2=1186868&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/wsdl/EndpointReferenceUtils.java Thu Oct 20
15:53:08 2011
@@ -135,10 +135,12 @@ public final class EndpointReferenceUtil
                         url = new URL(url, systemId);
                         newId = url.toExternalForm();
                     }
+                } catch (IllegalArgumentException e) {
+                    //ignore - systemId not a valid URI
                 } catch (URISyntaxException e) {
-                    //ignore
+                    //ignore - baseURI not a valid URI
                 } catch (MalformedURLException e) {
-                    //ignore
+                    //ignore - baseURI or systemId not a URL either
                 }
             }
             if (done.contains(newId + ":" + namespaceURI)) {



Mime
View raw message