tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r674141 - /tuscany/branches/sca-java-1.3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java
Date Sat, 05 Jul 2008 00:36:38 GMT
Author: slaws
Date: Fri Jul  4 17:36:37 2008
New Revision: 674141

URL: http://svn.apache.org/viewvc?rev=674141&view=rev
Log:
TUSCANY-2459 - If a binding uri is malformed don't try to use it to go looking for target
services

Modified:
    tuscany/branches/sca-java-1.3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java

Modified: tuscany/branches/sca-java-1.3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java
URL: http://svn.apache.org/viewvc/tuscany/branches/sca-java-1.3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java?rev=674141&r1=674140&r2=674141&view=diff
==============================================================================
--- tuscany/branches/sca-java-1.3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java
(original)
+++ tuscany/branches/sca-java-1.3/modules/assembly/src/main/java/org/apache/tuscany/sca/assembly/builder/impl/BaseWireBuilderImpl.java
Fri Jul  4 17:36:37 2008
@@ -588,7 +588,15 @@
                 // - if it doesn't it is assumed to be an external reference
                 Component targetComponent = null;
                 ComponentService targetComponentService = null;
-                String path = URI.create(uri).getPath();
+                String path = null;
+                
+                try {
+                    path = URI.create(uri).getPath();
+                } catch(Exception ex){
+                    // just assume that no target is identified if
+                    // a URI related exception is thrown
+                }
+                
                 if (path != null) {
                     if (path.startsWith("/")) {
                         path = path.substring(1);



Mime
View raw message