RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]
Michael McMahon
michaelm at openjdk.org
Thu Apr 18 13:32:03 UTC 2024
On Thu, 18 Apr 2024 11:35:21 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:
> > which lists the methods that parse as decimal only, and the new method which parses using the "loose" syntax.
>
> That might not be practical: the only method that supports non decimal form is the new `ofBSDLiteral`. But any other method only support decimal notation. These include URL/URI, permissions, InetSocketAdderess, InetAddress, Socket/DatagramSocket constructors, etc... Building a comprehensive list would be both unpractical and difficult.
I think we only need to talk about the methods in InetAddress. Though it could be phrased as `ofPosixLiteral` supports decimal, hex and octal. All other parsing is decimal only.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/18493#issuecomment-2063872720
More information about the net-dev
mailing list