r/java • u/loicmathieu • Jan 22 '26
Java 26: what’s new?
https://www.loicmathieu.fr/wordpress/informatique/java-26-whats-new/What's new in Java 26 for us, developers
(Bot in English and French)
163
Upvotes
View all comments
Show parent comment
6
u/mariofts Jan 22 '26
This can be achieved on the implementation, as its a static method it can use something like a atomic int to get all generations in the same milli and make sure it keeps monotonic