Commit d4c85d62 authored by Narayan Kamath's avatar Narayan Kamath
Browse files

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
parent ac13178a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment