RFR 8233048: WeekFields.ISO is not a singleton

Joe Wang huizhe.wang at oracle.com
Thu Jul 30 23:25:01 UTC 2020


+1

-Joe

On 7/30/20 2:53 PM, naoto.sato at oracle.com wrote:
> Hi,
>
> Please review the fix to the following issue:
>
> https://bugs.openjdk.java.net/browse/JDK-8233048
>
> The proposed chageset is located at:
>
> https://cr.openjdk.java.net/~naoto/8233048/webrev.00/
>
> java.time.temporal.WeekFields.ISO is instantiated using the 
> constructor, which is a different object returned from 
> WeekFields.of(MONDAY, 4). Even though this itself does not cause any 
> issues, since objects are "equal", but the fix will provide the 
> identity, as WeekFields objects are supposed to be singletons.
>
> Naoto
>



More information about the core-libs-dev mailing list