RFR 8233048: WeekFields.ISO is not a singleton
Stephen Colebourne
scolebourne at joda.org
Thu Jul 30 23:21:23 UTC 2020
+1
Stephen
On Thu, 30 Jul 2020 at 22:54, <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