RFR: 8334015: Add Support for UUID Version 7 (UUIDv7) defined in RFC 9562 [v16]
Kieran Farrell
kfarrell at openjdk.org
Thu Oct 23 10:29:53 UTC 2025
On Thu, 23 Oct 2025 09:55:41 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>>> I prefer `fromEpochMillis(...)` instead of the current `epochMillis(...)`. @RogerRiggs, @AlanBateman which one of these method names do you suggest we proceed with?
>>
>> The JDK has used `of` and `ofXXX` for static factory methods in recent years. There are a few cases that introduce `fromXXX`, often for cases with more parsing and failure conditions. It's impossible to be 100% consistent. I think `UUID.ofEpochMillis(long)` would work here.
>
>> I think UUID.ofEpochMillis(long) would work here.
>
> That sounds good to me too. @kieran-farrell, if you agree with this name too, please update the PR and the CSR.
Agreed, have updated both now
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25303#discussion_r2454653474
More information about the core-libs-dev
mailing list