Inet6Address: Provide an explicit hostname for the ANY address.
Inet6Address.ANY was being constructed with a null hostname. This meant that the first call to getHostName() would set its hostname to "::". This means that Inet6Address.ANY.toString() would be differ depending on whether or not getHostName was called. While this is true of all InetAddresses, it's especially bad behaviour for an address object that's essentially treated as immutable. bug: 28294969 (cherry picked from commit 5861b3547d27c05be153777099eb2f453a79630c) Change-Id: If73cab4abbcc12c0c4be25f2a0d3dda5e0d0de43
Loading
Please sign in to comment