RFR: 8272215: Add InetAddress methods for parsing IP address literals
Bernd
duke at openjdk.org
Sun Sep 17 23:43:37 UTC 2023
On Sun, 17 Sep 2023 23:21:23 GMT, Mark Sheppard <msheppar at openjdk.org> wrote:
> on further reflection, wrt method name, an overloaded getByAddress(String literalAddress) method is most appropriate
I agree, and it should have both variants, getByAddtess(String literalSddress) throes UHE
GetByAdress(String hostname, String, literalSdddress) throws UHE
In order to produce resolved addresses as well.
(The UHE is a bit strange but the preexisting method used it for a reason for invalid address arrays, I guess)
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15775#issuecomment-1722599828
More information about the net-dev
mailing list