RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]
Michael McMahon
michaelm at openjdk.org
Thu Apr 18 09:59:07 UTC 2024
On Wed, 17 Apr 2024 14:26:35 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?
That seems to be the case for the native function roundtrip. So, I would it expect it to be the same in Java.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18493#issuecomment-2063484079
More information about the net-dev
mailing list