InetAddress API extension

Sergey Chernyshev serge.chernyshev at bell-sw.com
Mon Apr 1 08:49:50 UTC 2024


Hi Michael,

Thank you for your feeedback! The apidoc will clearly explain the 
difference in parsing methods and the set of ambiguous arguments.

Am 29.03.24 um 12:35 schrieb Michael McMahon:
>
> Hi,
>
> I think this could be a useful addition. The apidoc would need to be 
> clear about the differences from the existing literal parsing method 
> and any implications for ambiguity between octal and decimal formats 
> spelled out.
>
> On 28/03/2024 19:09, Sergey Chernyshev wrote:
>> It is suggested to add a new factory method such as 
>> |.ofPosixLiteral()| to |Inet4Address| class to fill this gap. This 
>> won't introduce ambiguity into the API and won't break the long 
>> standing behavior. As a new method, it will not affect Java utilities 
>> such as HttpClient, nor the existing Java applications. At the same 
>> time, the new method will help dealing with confusion between BSD and 
>> Java standards. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20240401/e6863e76/attachment.htm>


More information about the net-dev mailing list