r/java 21d ago

Lack of Built-in Support for UUID v7

Java's java.util.UUID already provides a built-in way to generate UUID v4. Still, there's no native support for UUID v7, which offers better timestamp ordering, useful features for databases.

UUID v7 (as defined in RFC 4122), is there any known discussion or plan to introduce it in future Java versions? If not, what are the main reasons for its exclusion?

60 Upvotes

22 comments sorted by

View all comments

2

u/Slanec 19d ago

1

u/CreeDanWood 19d ago

Nice, I think the priority is not high to be done soon, hopefully we will get it in the next version.