On Wed, 17 Apr 2024 14:02:05 GMT, Jaikiran Pai <j...@openjdk.org> wrote:

> Should we be setting any expectations by specifying what 
> InetAddress.getHostAddress() will return for an Inet4Address constructed 
> using this new Inet4Address.ofPosixLiteral() method? In its current form I 
> believe it will continue to return a decimal representation of the IP 
> address. My guess is that we want it to continue behaving that way?

In the InetAddress class level API documentation we have:

 * <p> For methods that return a textual representation as output
 * value, the first form, i.e. a dotted-quad string, is used.


Do you think it should be reiterated in the `@apiNote` of the `ofPosixLiteral` 
method?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/18493#issuecomment-2061370892

Reply via email to