The current specification wording for InetSocketAddress::toString is:
"Constructs a string representation of this InetSocketAddress. This String
is constructed by calling toString() on the InetAddress and concatenating
the port number (with a colon). If the address is an IPv6 address, the IPv6
literal is enclosed in square brackets. If the address is unresolved,
<unresolved> is displayed in place of the address literal."
The wording could be improved a little to avoid any potential confusion about how and when "<unresolved>" is displayed.
This issue is filed in response to a question that was raised on net-dev, see:
https://mail.openjdk.java.net/pipermail/net-dev/2020-March/013725.html
https://mail.openjdk.java.net/pipermail/net-dev/2020-April/013747.html