Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-29 Thread Remi Forax
- Original Message - > From: "Roger Riggs" > To: "core-libs-dev" > Sent: Mardi 29 Juin 2021 18:44:04 > Subject: Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method > [v5] > On Tue, 29 Jun 2021 05:47:03 GMT, Tagir F. Valeev wrote: &

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-29 Thread Roger Riggs
On Tue, 29 Jun 2021 05:47:03 GMT, Tagir F. Valeev wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Add test synchronizing on return value of Objecst.newIdentity() > > Probably it would be better to have an inner clas

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-28 Thread Tagir F . Valeev
On Mon, 28 Jun 2021 19:45:34 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-28 Thread Roger Riggs
> Add java.util.Objects.newIdentity to supply a unique object with identity. > This is a replacement code can be used today for the traditional new Object() > idiom, which will be deprecated under Project Valhalla. > Refer to [JEP 401: Primitive Objects > (Preview)](https://openjdk.java.net/jeps/

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v5]

2021-06-28 Thread Jorn Vernee
On Mon, 28 Jun 2021 19:45:34 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v4]

2021-06-28 Thread Jorn Vernee
On Wed, 23 Jun 2021 19:21:02 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v4]

2021-06-23 Thread Roger Riggs
> Add java.util.Objects.newIdentity to supply a unique object with identity. > This is a replacement code can be used today for the traditional new Object() > idiom, which will be deprecated under Project Valhalla. > Refer to [JEP 401: Primitive Objects > (Preview)](https://openjdk.java.net/jeps/

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]

2021-06-23 Thread Chris Hegarty
On Tue, 22 Jun 2021 16:18:11 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]

2021-06-22 Thread Roger Riggs
On Tue, 22 Jun 2021 18:01:46 GMT, Chris Hegarty wrote: >> Roger Riggs has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update copyright in BasicObjectsTest > > src/java.base/share/classes/java/util/Objects.java line 492: > >> 490: /*

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]

2021-06-22 Thread Chris Hegarty
On Tue, 22 Jun 2021 16:18:11 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]

2021-06-22 Thread Naoto Sato
On Tue, 22 Jun 2021 16:18:11 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]

2021-06-22 Thread Brian Burkhalter
On Tue, 22 Jun 2021 16:18:11 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]

2021-06-22 Thread Mandy Chung
On Tue, 22 Jun 2021 16:18:11 GMT, Roger Riggs wrote: >> Add java.util.Objects.newIdentity to supply a unique object with identity. >> This is a replacement code can be used today for the traditional new >> Object() idiom, which will be deprecated under Project Valhalla. >> Refer to [JEP 401: Pri

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v3]

2021-06-22 Thread Roger Riggs
> Add java.util.Objects.newIdentity to supply a unique object with identity. > This is a replacement code can be used today for the traditional new Object() > idiom, which will be deprecated under Project Valhalla. > Refer to [JEP 401: Primitive Objects > (Preview)](https://openjdk.java.net/jeps/

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method [v2]

2021-06-22 Thread Roger Riggs
> Add java.util.Objects.newIdentity to supply a unique object with identity. > This is a replacement code can be used today for the traditional new Object() > idiom, which will be deprecated under Project Valhalla. > Refer to [JEP 401: Primitive Objects > (Preview)](https://openjdk.java.net/jeps/

Re: [jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method

2021-06-21 Thread Mandy Chung
On Mon, 21 Jun 2021 22:25:49 GMT, Roger Riggs wrote: > Add java.util.Objects.newIdentity to supply a unique object with identity. > This is a replacement code can be used today for the traditional new Object() > idiom, which will be deprecated under Project Valhalla. > Refer to [JEP 401: Primiti

[jdk17] RFR: 8269096: Add java.util.Objects.newIdentity method

2021-06-21 Thread Roger Riggs
Add java.util.Objects.newIdentity to supply a unique object with identity. This is a replacement code can be used today for the traditional new Object() idiom, which will be deprecated under Project Valhalla. Refer to [JEP 401: Primitive Objects (Preview)](https://openjdk.java.net/jeps/401) for b