Re: RFR: 8323746: Add PathElement hashCode and equals [v2]

2024-02-08 Thread Per Minborg
On Sat, 3 Feb 2024 11:28:51 GMT, ExE Boss wrote: >> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Make all PathElements records > > src/java.base/share/classes/jdk/internal/foreign/LayoutPath.java line 494: > >> 492:

Re: RFR: 8323746: Add PathElement hashCode and equals [v3]

2024-02-08 Thread Per Minborg
> This PR proposes to implement `hashCode()` and `equals()` methods for > implementations of `PathElement`. > > In doing so, the previous `PathElementImpl` was removed and replaced in favor > of distinct `record` implementations, each reflecting its own path element > selection type. This also

Re: RFR: 8323746: Add PathElement hashCode and equals [v2]

2024-02-03 Thread ExE Boss
On Fri, 2 Feb 2024 07:41:16 GMT, Per Minborg wrote: >> This PR proposes to implement `hashCode()` and `equals()` methods for >> implementations of `PathElement`. >> >> In doing so, the previous `PathElementImpl` was removed and replaced in >> favor of distinct `record` implementations, each re

Re: RFR: 8323746: Add PathElement hashCode and equals [v2]

2024-02-03 Thread Maurizio Cimadamore
On Fri, 2 Feb 2024 07:41:16 GMT, Per Minborg wrote: >> This PR proposes to implement `hashCode()` and `equals()` methods for >> implementations of `PathElement`. >> >> In doing so, the previous `PathElementImpl` was removed and replaced in >> favor of distinct `record` implementations, each re

Re: RFR: 8323746: Add PathElement hashCode and equals [v2]

2024-02-01 Thread Per Minborg
> This PR proposes to implement `hashCode()` and `equals()` methods for > implementations of `PathElement`. > > In doing so, the previous `PathElementImpl` was removed and replaced in favor > of distinct `record` implementations, each reflecting its own path element > selection type. This also

Re: RFR: 8323746: Add PathElement hashCode and equals

2024-02-01 Thread Maurizio Cimadamore
On Thu, 1 Feb 2024 14:25:24 GMT, Per Minborg wrote: >> src/java.base/share/classes/jdk/internal/foreign/LayoutPath.java line 454: >> >>> 452: } >>> 453: >>> 454: public static final class SequenceElement >> >> Why are these not empty records? > > I had that in the beginning but convert

Re: RFR: 8323746: Add PathElement hashCode and equals

2024-02-01 Thread Per Minborg
On Wed, 31 Jan 2024 18:21:09 GMT, Maurizio Cimadamore wrote: >> This PR proposes to implement `hashCode()` and `equals()` methods for >> implementations of `PathElement`. >> >> In doing so, the previous `PathElementImpl` was removed and replaced in >> favor of distinct `record` implementation

Re: RFR: 8323746: Add PathElement hashCode and equals

2024-01-31 Thread Maurizio Cimadamore
On Wed, 31 Jan 2024 13:04:07 GMT, Per Minborg wrote: > This PR proposes to implement `hashCode()` and `equals()` methods for > implementations of `PathElement`. > > In doing so, the previous `PathElementImpl` was removed and replaced in favor > of distinct `record` implementations, each reflec

RFR: 8323746: Add PathElement hashCode and equals

2024-01-31 Thread Per Minborg
This PR proposes to implement `hashCode()` and `equals()` methods for implementations of `PathElement`. In doing so, the previous `PathElementImpl` was removed and replaced in favor of distinct `record` implementations, each reflecting its own path element selection type. This also allowed the