Author: ron.sigal(a)jboss.com
Date: 2010-01-08 23:18:10 -0500 (Fri, 08 Jan 2010)
New Revision: 5655
Modified:
remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java
Log:
JBREM-1175: Added test for IPv6 host addresses to five argument constructor.
Modified: remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java
===================================================================
--- remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java 2010-01-08
22:51:51 UTC (rev 5654)
+++ remoting2/branches/2.2/src/main/org/jboss/remoting/InvokerLocator.java 2010-01-09
04:18:10 UTC (rev 5655)
@@ -450,6 +450,12 @@
this.port = port;
this.path = path;
this.parameters = parameters;
+
+ // Test for IPv6 host address.
+ if (this.host != null && this.host.indexOf(":") >= 0
&& this.host.indexOf("[") == -1)
+ {
+ this.host = "[" + this.host + "]";
+ }
this.uri = protocol + "://" + this.host + ((port > -1) ?
(":" + port) : "") + "/" + path + ((parameters != null) ?
"?" : "");
if(parameters != null)
Show replies by date