New APIs in Java 20
Comparing Java 20 (20.0.2+9-tem) with Java 17 (17.0.13+11-tem).
Element | Modification |
---|---|
java.base |
|
java.io |
|
BufferedInputStream |
|
|
|
FileInputStream |
|
InvalidClassException |
|
InvalidObjectException |
|
ObjectInputStream.GetField |
|
|
|
|
|
ObjectStreamException |
|
PrintStream |
|
PushbackInputStream |
|
SequenceInputStream |
|
java.lang.constant |
|
ClassDesc |
|
java.lang.invoke |
|
|
|
|
|
|
|
MethodHandles |
|
|
|
java.lang.module |
|
ModuleDescriptor.Exports |
|
ModuleDescriptor.Opens |
|
ModuleDescriptor.Requires |
|
ModuleDescriptor |
|
java.lang.ref |
|
ReferenceQueue |
|
|
|
|
|
java.lang.reflect |
|
Executable |
|
|
|
Field |
|
Method |
|
|
|
Parameter |
|
Member |
|
java.lang |
|
Character.UnicodeBlock |
|
Class |
|
Double |
|
Enum |
|
|
|
Float |
|
Integer |
|
Long |
|
Math |
|
ModuleLayer.Controller |
|
Module |
|
Object |
|
|
|
Runtime |
|
|
|
|
|
|
|
|
|
StrictMath |
|
System |
|
|
|
|
|
Thread |
|
|
|
|
|
Character.UnicodeScript |
|
java.math |
|
BigDecimal |
|
BigInteger |
|
java.net.spi |
|
java.net |
|
|
|
SocketException |
|
URL |
|
|
|
|
|
|
|
|
|
|
|
|
|
java.nio.channels |
|
FileChannel |
|
java.nio.charset |
|
Charset |
|
java.nio.file.spi |
|
FileSystemProvider |
|
java.nio |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
java.security.cert |
|
CertStore |
|
|
|
java.security.interfaces |
|
DSAKeyPairGenerator |
|
|
|
|
|
java.security.spec |
|
PSSParameterSpec |
|
|
|
|
|
java.security |
|
InvalidParameterException |
|
KeyStoreSpi |
|
KeyStore |
|
java.text |
|
DecimalFormatSymbols |
|
java.time.chrono |
|
IsoChronology |
|
JapaneseChronology |
|
MinguoChronology |
|
ThaiBuddhistChronology |
|
Chronology |
|
java.time.format |
|
DateTimeFormatterBuilder |
|
DateTimeFormatter |
|
java.time |
|
Duration |
|
|
|
ZoneOffset |
|
java.util.concurrent |
|
CompletableFuture |
|
|
|
Executors |
|
ForkJoinPool |
|
ForkJoinTask |
|
ForkJoinWorkerThread |
|
FutureTask |
|
|
|
ThreadPoolExecutor |
|
|
|
|
|
Future |
|
java.util.regex |
|
Matcher |
|
Pattern |
|
MatchResult |
|
java.util.spi |
|
ToolProvider |
|
java.util.zip |
|
ZipInputStream |
|
java.util |
|
|
|
HashMap |
|
HashSet |
|
IdentityHashMap |
|
|
|
LinkedHashMap |
|
LinkedHashSet |
|
Locale |
|
|
|
|
|
|
|
Objects |
|
Random |
|
WeakHashMap |
|
javax.crypto.spec |
|
OAEPParameterSpec |
|
|
|
javax.crypto |
|
DecapsulateException |
|
KEM.Decapsulator |
|
KEM.Encapsulated |
|
KEM.Encapsulator |
|
KEM |
|
KEMSpi.DecapsulatorSpi |
|
KEMSpi.EncapsulatorSpi |
|
KEMSpi |
|
javax.net.ssl |
|
KeyManagerFactory |
|
|
|
SSLHandshakeException |
|
SSLKeyException |
|
SSLParameters |
|
SSLPeerUnverifiedException |
|
SSLProtocolException |
|
TrustManagerFactory |
|
|
|
SSLSessionContext |
|
|
|
|
|
javax.security.auth |
|
Subject |
|
|
|
|
|
java.compiler |
|
javax.annotation.processing |
|
Messager |
|
javax.lang.model.element |
|
ElementKind |
|
ExecutableElement |
|
javax.lang.model.util |
|
Elements |
|
javax.lang.model |
|
SourceVersion |
|
javax.tools |
|
ForwardingJavaFileManager |
|
DocumentationTool.Location |
|
JavaFileManager |
|
java.desktop |
|
java.awt.color |
|
|
|
|
|
|
|
finalize() |
|
java.awt.desktop |
|
|
|
|
|
java.awt.dnd |
|
|
|
java.awt.event |
|
|
|
java.awt.geom |
|
CubicCurve2D.Double |
|
getBounds2D() |
|
CubicCurve2D.Float |
|
getBounds2D() |
|
CubicCurve2D |
|
|
|
QuadCurve2D.Double |
|
getBounds2D() |
|
QuadCurve2D.Float |
|
getBounds2D() |
|
QuadCurve2D |
|
java.awt.image |
|
ColorModel |
|
finalize() |
|
IndexColorModel |
|
finalize() |
|
java.awt |
|
Graphics |
|
|
|
|
|
|
|
|
|
PrintJob |
|
|
|
|
|
|
|
javax.imageio.spi |
|
ServiceRegistry |
|
|
|
javax.imageio.stream |
|
FileCacheImageInputStream |
|
|
|
FileImageInputStream |
|
|
|
FileImageOutputStream |
|
|
|
ImageInputStreamImpl |
|
|
|
MemoryCacheImageInputStream |
|
|
|
javax.sound.midi |
|
|
|
javax.swing.plaf.basic |
|
BasicDirectoryModel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasicToolBarUI |
|
|
|
javax.swing.plaf.synth |
|
SynthPasswordFieldUI |
|
javax.swing.text.html |
|
|
|
|
|
|
|
javax.swing.text |
|
DefaultEditorKit |
|
|
|
|
|
|
|
|
|
|
|
javax.swing |
|
|
|
|
|
|
|
|
|
java.management |
|
java.lang.management |
|
MemoryMXBean |
|
|
|
javax.management.loading |
|
|
|
|
|
|
|
|
|
java.net.http |
|
java.net.http |
|
HttpClient.Builder |
|
HttpRequest.Builder |
|
java.xml |
|
javax.xml.xpath |
|
XPathFactory |
|
This report is based on simple comparison of all public
and
protected
APIs of the java.*
and javax.*
packages of JDK builds 20.0.2+9-tem and
17.0.13+11-tem. It does not make statements about
compatibility.
For the latest Java versions the corresponding CSRs (Compatibility & Specification Review) are linked for a quick reference to find out about the reasoning of the change.