RFR: 8272215: Add InetAddress methods for parsing IP address literals
Bernd
duke at openjdk.org
Mon Sep 18 17:00:41 UTC 2023
On Mon, 18 Sep 2023 14:14:57 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> * Inet4Address.ofLiteral("06.07.08.09") ==> /6.7.8.9
if we ignore octal encoding, we should document it explicitely.
Maybe
> The loose IPv4 syntax of partial numbers or hex encoding ("10.0.258", "0xA000102") is not supported and causes a parsing error. Octal (zero) prefixes are ignored, i.e. interpreted decimal.
(However I would prefer to reject octal in this case)
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15775#discussion_r1329036189
More information about the net-dev
mailing list