RFR: 8334015: Add Support for UUID Version 7 (UUIDv7) defined in RFC 9562 [v16]
Roger Riggs
rriggs at openjdk.org
Wed Oct 22 21:29:01 UTC 2025
On Wed, 22 Oct 2025 16:53:30 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:
>> src/java.base/share/classes/java/util/UUID.java line 208:
>>
>>> 206: * @since 26
>>> 207: * */
>>> 208: public static UUID epochMillis(long timestamp) {
>>
>> Now that we have settled on which API to expose, would it be better to rename this new method to `fromEpochMillis(...)`? This class already has a `fromString(...)` API, so `fromEpochMillis(...)` would fit in with that style and would be a bit more precise too, I think.
>
> The rest of the changes in the PR looks fine to me. Before reviewing the CSR, I think we should come to an agreement on the method naming.
>
> I prefer `fromEpochMillis(...)` instead of the current `epochMillis(...)`. @RogerRiggs, @AlanBateman which one of these method names do you suggest we proceed with?
Not to thrash on the name but `fromEpochMillis(millis))` is a good name similar to `fromString(String)`.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25303#discussion_r2453392447
More information about the core-libs-dev
mailing list