RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]
Daniel Fuchs
dfuchs at openjdk.org
Wed Apr 17 14:19:01 UTC 2024
On Wed, 17 Apr 2024 14:02:05 GMT, Jaikiran Pai <jpai at 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
More information about the net-dev
mailing list