[
https://issues.jboss.org/browse/WFLY-2921?page=com.atlassian.jira.plugin....
]
Sri Ram edited comment on WFLY-2921 at 5/3/14 3:46 PM:
-------------------------------------------------------
Sent a pull request which improves the test cases by adding test for unresolved address
scenario.
https://github.com/wildfly/wildfly/pull/6227
was (Author: ramsrib):
Sent a pull request which improves the test cases by adding test for unresolved address
scenario.
Wrong condition statement in
NetworkUtils#formatAddress(InetSocketAddress)
--------------------------------------------------------------------------
Key: WFLY-2921
URL:
https://issues.jboss.org/browse/WFLY-2921
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 8.0.0.Final
Reporter: Ted Won
Priority: Minor
It seems there is a wrong condition statement of formatAddress(InetSocketAddress inet) in
the class org.jboss.as.network.NetworkUtils.
https://github.com/wildfly/wildfly/blob/master/network/src/main/java/org/...
This method returns "ipAddress:port", but expected to
"hostname:port".
public static String formatAddress(InetSocketAddress inet)
...
// As-is
if(inet.isUnresolved()){
result.append(inet.getHostName());
// Expected to reversely:
if(!inet.isUnresolved()){
result.append(inet.getHostName());
...
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)