Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v11]

2024-05-22 Thread Jaikiran Pai
On Mon, 20 May 2024 09:25:31 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v11]

2024-05-20 Thread Aleksei Efimov
On Mon, 20 May 2024 09:25:31 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v11]

2024-05-20 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-20 Thread Sergey Chernyshev
On Sun, 19 May 2024 14:29:49 GMT, Alan Bateman wrote: > I think you may have mis-read my comment. I think we need to add `@see > InetAddress4#ofPosixLiteral(String)` to InetAddress.ofLiteral, not > Inet4Address.ofLiteral. The reason is that methods defined by Inet4Address > are not very discov

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-19 Thread Alan Bateman
On Fri, 17 May 2024 10:42:44 GMT, Alan Bateman wrote: >> Sergey Chernyshev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update src/java.base/share/classes/java/net/Inet4Address.java >> >> Co-authored-by: Daniel Fuchs <67001856+df

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v10]

2024-05-17 Thread Aleksei Efimov
On Fri, 17 May 2024 11:23:34 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v10]

2024-05-17 Thread Daniel Fuchs
On Fri, 17 May 2024 11:23:34 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-17 Thread Sergey Chernyshev
On Fri, 17 May 2024 10:42:44 GMT, Alan Bateman wrote: > The new method is not easily discovered, which is okay as it's very much a > method for experts, I see wonder if we should put a `@see` in > InetAddress.ofLiteral. Thanks @AlanBateman for your note. There's a link to `ofPosixLiteral` from

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v10]

2024-05-17 Thread Michael McMahon
On Fri, 17 May 2024 11:23:34 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-17 Thread Sergey Chernyshev
On Fri, 17 May 2024 10:31:02 GMT, Michael McMahon wrote: >> Sergey Chernyshev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> Update src/java.base/share/classes/java/net/Inet4Address.java >> >> Co-authored-by: Daniel Fuchs <67001856

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v10]

2024-05-17 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-17 Thread Alan Bateman
On Thu, 16 May 2024 09:12:20 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-17 Thread Michael McMahon
On Thu, 16 May 2024 09:12:20 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-17 Thread Michael McMahon
On Thu, 16 May 2024 09:12:20 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-05-16 Thread Sergey Chernyshev
On Tue, 7 May 2024 10:08:12 GMT, Aleksei Efimov wrote: >> The parsing code and the test changes look good to me with a couple of minor >> suggestions. > >> @AlekseiEfimov @jaikiran @Michael-Mc-Mahon Could you please take a look and >> review the [CSR ](https://bugs.openjdk.org/browse/JDK-832987

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-16 Thread Aleksei Efimov
On Thu, 16 May 2024 09:12:20 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-05-16 Thread Daniel Fuchs
On Tue, 7 May 2024 10:08:12 GMT, Aleksei Efimov wrote: >> The parsing code and the test changes look good to me with a couple of minor >> suggestions. > >> @AlekseiEfimov @jaikiran @Michael-Mc-Mahon Could you please take a look and >> review the [CSR ](https://bugs.openjdk.org/browse/JDK-832987

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v9]

2024-05-16 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v8]

2024-05-16 Thread Sergey Chernyshev
On Wed, 15 May 2024 17:34:21 GMT, Daniel Fuchs wrote: >> Sergey Chernyshev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> changed class level docs > > src/java.base/share/classes/java/net/Inet4Address.java line 102: > >> 100: * Please

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v8]

2024-05-15 Thread Daniel Fuchs
On Mon, 6 May 2024 18:36:24 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr`

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v8]

2024-05-14 Thread Sergey Chernyshev
On Mon, 13 May 2024 14:01:34 GMT, Sergey Chernyshev wrote: > missing the fact that the _only_ form supported I'd also note that, when mentioned in the docs that this is the _only_ method capable of parsing this type of strings, it can be limiting to the future APIs that could introduce other

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v8]

2024-05-13 Thread Sergey Chernyshev
On Mon, 6 May 2024 18:36:24 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr`

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-05-09 Thread Daniel Fuchs
On Thu, 18 Apr 2024 13:29:21 GMT, Michael McMahon 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

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-05-07 Thread Aleksei Efimov
On Tue, 16 Apr 2024 22:38:57 GMT, Aleksei Efimov wrote: >> Sergey Chernyshev has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Update src/java.base/share/classes/java/net/Inet4Address.java >> >>Co-authored-by: Daniel Fuchs <67001

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-05-07 Thread Sergey Chernyshev
On Tue, 16 Apr 2024 22:38:57 GMT, Aleksei Efimov wrote: >> Sergey Chernyshev has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Update src/java.base/share/classes/java/net/Inet4Address.java >> >>Co-authored-by: Daniel Fuchs <67001

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v8]

2024-05-06 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-05-06 Thread Sergey Chernyshev
On Thu, 18 Apr 2024 13:29:21 GMT, Michael McMahon 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

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-05-06 Thread Sergey Chernyshev
On Mon, 6 May 2024 10:35:35 GMT, Jaikiran Pai wrote: > Hello Sergey, do you plan to update the PR with the class level doc change > suggested by Michael? Hi @jaikiran ! Yes I plan to update the PR. Apologies for the delay. - PR Comment: https://git.openjdk.org/jdk/pull/18493#issue

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-05-06 Thread Jaikiran Pai
On Wed, 17 Apr 2024 22:23:41 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-04-18 Thread Daniel Fuchs
On Thu, 18 Apr 2024 13:29:21 GMT, Michael McMahon wrote: > 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. Yes. that latter formulation might be better. --

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-04-18 Thread Michael McMahon
On Thu, 18 Apr 2024 11:35:21 GMT, Daniel Fuchs 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

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-04-18 Thread Daniel Fuchs
On Thu, 18 Apr 2024 10:24:30 GMT, Michael McMahon 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

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-04-18 Thread Michael McMahon
On Wed, 17 Apr 2024 22:23:41 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-18 Thread Michael McMahon
On Wed, 17 Apr 2024 14:26:35 GMT, Jaikiran Pai wrote: > Should we be setting any expectations by specifying what > `InetAddress.getHostAddress()` will return for an `Inet4Address` constructed > using this new `Inet4Address.ofPosixLiteral()` method? In its current form I > believe it will conti

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Sergey Chernyshev
On Wed, 17 Apr 2024 14:48:37 GMT, Jaikiran Pai wrote: >> src/java.base/share/classes/java/net/Inet4Address.java line 104: >> >>> 102: * Purposes. >>> 103: * For methods that return a textual representation as output >>> 104: * value, the first form, i.e. a dotted-quad string, is used. >> >>

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Sergey Chernyshev
On Tue, 16 Apr 2024 22:17:21 GMT, Aleksei Efimov wrote: >> Sergey Chernyshev has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Update src/java.base/share/classes/java/net/Inet4Address.java >> >>Co-authored-by: Daniel Fuchs <67001

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v7]

2024-04-17 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v6]

2024-04-17 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Jaikiran Pai
On Wed, 17 Apr 2024 14:37:56 GMT, Daniel Fuchs wrote: >> Sergey Chernyshev has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - Update src/java.base/share/classes/java/net/Inet4Address.java >> >>Co-authored-by: Daniel Fuchs <6700185

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Daniel Fuchs
On Thu, 11 Apr 2024 15:27:55 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Daniel Fuchs
On Wed, 17 Apr 2024 14:26:35 GMT, Jaikiran Pai wrote: > The changes proposed in this PR introduce a new paragraph in the class level > documentation just before the line which states the dotted-quad string. So I > think it may not be clear enough whether dotted-quad string implies decimal > va

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Jaikiran Pai
On Wed, 17 Apr 2024 14:16:30 GMT, Daniel Fuchs wrote: > > Should we be setting any expectations by specifying what > > InetAddress.getHostAddress() will return for an Inet4Address constructed > > using this new Inet4Address.ofPosixLiteral() method? In its current form I > > believe it will con

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Daniel Fuchs
On Wed, 17 Apr 2024 14:02:05 GMT, Jaikiran Pai wrote: > Should we be setting any expectations by specifying what > InetAddress.getHostAddress() will return for an Inet4Address constructed > using this new Inet4Address.ofPosixLiteral() method? In its current form I > believe it will continue to

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-17 Thread Jaikiran Pai
On Thu, 11 Apr 2024 15:27:55 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-16 Thread Aleksei Efimov
On Thu, 11 Apr 2024 15:27:55 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v5]

2024-04-11 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v4]

2024-04-11 Thread Daniel Fuchs
On Thu, 11 Apr 2024 12:58:07 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v4]

2024-04-11 Thread Sergey Chernyshev
On Thu, 11 Apr 2024 09:21:36 GMT, Daniel Fuchs wrote: >> I updated the docs to link to the class specification, also added an anchor >> in the spec. > > I would rather move the description of the loose syntax fully here, since the > only method that accepts it is `Inet4Address.ofPosixLiteral`.

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v2]

2024-04-11 Thread Sergey Chernyshev
On Thu, 11 Apr 2024 09:56:56 GMT, Florent Guillaume wrote: >> Sergey Chernyshev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> addressed review comments in Javadoc > > test/jdk/java/net/InetAddress/OfLiteralTest.java line 232: > >> 230

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v4]

2024-04-11 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v3]

2024-04-11 Thread Sergey Chernyshev
On Thu, 11 Apr 2024 09:15:54 GMT, Daniel Fuchs wrote: >> This removes the reference of loose syntax that was opposed to strict >> syntax. Would you think to also remove the word "strict"? > > @sercher the word "loose" is still there - it's not removed? Right. Apologies, i didn't notice it. ---

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v2]

2024-04-11 Thread Florent Guillaume
On Wed, 10 Apr 2024 15:34:22 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v3]

2024-04-11 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v2]

2024-04-11 Thread Daniel Fuchs
On Wed, 10 Apr 2024 15:30:52 GMT, Sergey Chernyshev wrote: >> src/java.base/share/classes/java/net/Inet4Address.java line 103: >> >>> 101: * octal and hexadecimal address segments. Please refer to >>> 102: * https://www.ietf.org/rfc/rfc6943.html#section-3.1.1";> >>> RFC  >>> 103: * 6943: Is

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v2]

2024-04-11 Thread Daniel Fuchs
On Wed, 10 Apr 2024 15:34:22 GMT, Sergey Chernyshev wrote: >> There are two distinct approaches to parsing IPv4 literal addresses. One is >> the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another >> one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v2]

2024-04-11 Thread Sergey Chernyshev
On Tue, 9 Apr 2024 13:35:00 GMT, Daniel Fuchs wrote: >> Sergey Chernyshev has updated the pull request incrementally with one >> additional commit since the last revision: >> >> addressed review comments in Javadoc > > src/java.base/share/classes/java/net/Inet4Address.java line 103: > >> 101

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses [v2]

2024-04-10 Thread Sergey Chernyshev
> There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` > allowing octal and hexadecimal forms [2]). The goal of this

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses

2024-04-09 Thread Daniel Fuchs
On Tue, 26 Mar 2024 17:25:54 GMT, Sergey Chernyshev wrote: > There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr`

Re: RFR: 8315767: InetAddress: constructing objects from BSD literal addresses

2024-04-09 Thread Daniel Fuchs
On Tue, 26 Mar 2024 17:25:54 GMT, Sergey Chernyshev wrote: > There are two distinct approaches to parsing IPv4 literal addresses. One is > the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another > one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr`

RFR: 8315767: InetAddress: constructing objects from BSD literal addresses

2024-04-08 Thread Sergey Chernyshev
There are two distinct approaches to parsing IPv4 literal addresses. One is the Java baseline "strict" syntax (all-decimal d.d.d.d form family), another one is the "loose" syntax of RFC 6943 section 3.1.1 [1] (POSIX `inet_addr` allowing octal and hexadecimal forms [2]). The goal of this PR is to