Java 21 – The Other Side – Inside Java Newscast #51



Java 21 – The Other Side – Inside Java Newscast #51

Java 21 - The Other Side - Inside Java Newscast #51

OMG, how is there even more in JDK 21?! Scoped values preview, key encapsulation mechanism API, a new JFR command, and various API improvements. Generational Shenandoah is out, though, and it doesn’t look good for the 32-bit Windows port either.

Last Inside Java Newscast with everything else in Java 21: https://www.youtube.com/watch?v=qGaUZ1Z34jw

~~~ Chapters ~~~

0:00 Intro
0:46 Scoped Values
JEP 446: https://openjdk.org/jeps/446
JEP Cafe #16: https://www.youtube.com/watch?v=fjvGzBFmyhM
2:44 No generational Shenandoah
Roman’s issue comment: https://bugs.openjdk.org/browse/JDK-8260865?focusedCommentId=14587756&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-14587756
3:41 Key Encapsulation Mechanism API
Diffie-Hellmann: https://en.wikipedia.org/wiki/Diffie%E2%80%93Hellman_key_exchange
JEP 452: https://openjdk.org/jeps/452
4:50 Platform Integrity and Dynamic Agents
JEP 451: https://openjdk.org/jeps/451
8:38 New JFR Command
blog post: https://egahlin.github.io/2023/05/30/views.html
9:01 API Improvements
`Character::isEmoji`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/lang/Character.html#isEmoji(int)
`Math::clamp`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/lang/StrictMath.html#clamp(long,long,long)
`StringBuilder::repeat`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/lang/StringBuilder.html#repeat(java.lang.CharSequence,int)
`StringBuffer::repeat`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/lang/StringBuffer.html#repeat(java.lang.CharSequence,int)
`String::indexOf`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/lang/String.html#indexOf(java.lang.String,int,int)
`String::splitWithDelimiters`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/lang/String.html#splitWithDelimiters(java.lang.String,int)
`Collections::shuffle`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/util/Collections.html#shuffle(java.util.List,java.util.random.RandomGenerator)
`HttpClient::close?: https://download.java.net/java/early_access/jdk21/docs/api/java.net.http/java/net/http/HttpClient.html#close%28%29
`Locale::availableLocales`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/util/Locale.html#availableLocales%28%29
`Locale::caseFoldLanguageTag`: https://download.java.net/java/early_access/jdk21/docs/api/java.base/java/util/Locale.html#caseFoldLanguageTag(java.lang.String)
10:31 32-bit Windows Port
JEP 449: https://openjdk.org/jeps/449
10:52 Outro

Tags: #Java21 #JDK21 #OpenJDK #InsideJava

Comments are closed.