RFR: 8272215: Add InetAddress methods for parsing IP address literals

Bernd duke at openjdk.org
Mon Oct 16 16:18:18 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 literalAddress) throws UHE

getByAdress(String hostname, String  literalAddress) 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