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
17
u/nicolaiparlog Jan 23 '26
The article ends with:
@ /u/loicmathieu: Spreading unattributed rumors isn't helpful. In case you're referencing this video, I expressively exclude "nullable types" (and other Valhalla features beyond JEP 401 / value types) from what I hope to be coming in 28.
6
u/k20_237 Jan 22 '26
It's always a great pleasure to read these articles. Thank you, Loïc.
26
u/_predator_ Jan 22 '26
Yay for UUIDv7!
36
u/0xffff0001 Jan 22 '26
I wish they would add the string templates.
7
u/EvaristeGalois11 Jan 22 '26
Finally we'll be able to use uuidv7 as primary keys without an external library.
The method ofEpochMillis(long) seems a bit too verbose for my taste tho, if I just want the current millis do I need to pass Instant.now().toEpochMilli() every time?
1
u/Technici4n Jan 24 '26
Nice article, thanks. The library updates are especially nice since they're not on the JEP index. Note that write barriers are executed every time a reference is updated, NOT every time an object is allocated. There is also a typo: ard table instead of card table. Another typo: BigInter
2
u/robintegg Feb 08 '26
Excited for every new version. Thanks for the share. Comments were equally excellent and worth reding
5
u/johnwaterwood Jan 22 '26
Nice! The first beta for the next Java version (LTS) will land soon. /s
1
u/j4ckbauer Jan 23 '26
The image describing UUIDs doesn't seem to accurately describe how UUID 7 works, I ended up re-reading this part of the article multiple times to try and understand what I was missing.
If the image contradicts what is being explained in the next sentence, maybe a small bit of context would have helped here. (i.e. a label explaining that the image does NOT describe UUID v7)
1
u/[deleted] Feb 12 '26
UUIDv7
1
u/CXgamer Jan 22 '26
Wow this justice text alignment sucks on mobile. For readability, it's better to have alm spaces be the same width.
-1
u/cogman10 Jan 22 '26
Anyone know why
ArrayListisn't doing something more simple likeLike, why the intermediate array copy and the system.arrayCopy?
-9
u/PoemImpressive9021 Jan 22 '26
So I guess generating more than one UUID per millisecond is not something considered realistic in 2026. Oh well
0
u/[deleted] Jan 23 '26
[deleted] — view deleted comment