New APIs in Java 20
Comparing Java 20 (20.0.2+9-tem) with Java 18 (18.0.2.1+1-tem).
Element | Modification |
---|---|
java.base | |
java.io | |
BufferedInputStream | |
| |
InvalidClassException | |
InvalidObjectException | |
| |
ObjectStreamException | |
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 | |
Parameter | |
Member | |
java.lang | |
Character.UnicodeBlock | |
Class | |
Double | |
Float | |
Integer | |
Long | |
Math | |
ModuleLayer.Controller | |
Module | |
StrictMath | |
| |
Thread | |
| |
Character.UnicodeScript | |
java.math | |
BigDecimal | |
BigInteger | |
java.net | |
| |
SocketException | |
URL | |
| |
| |
| |
| |
| |
| |
java.nio.channels | |
FileChannel | |
java.nio.file.spi | |
FileSystemProvider | |
java.nio | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
java.security.cert | |
CertStore | |
| |
java.security.interfaces | |
DSAKeyPairGenerator | |
| |
| |
java.security.spec | |
PSSParameterSpec | |
| |
| |
java.security | |
InvalidParameterException | |
java.text | |
DecimalFormatSymbols | |
java.time.chrono | |
IsoChronology | |
JapaneseChronology | |
MinguoChronology | |
ThaiBuddhistChronology | |
Chronology | |
java.time.format | |
DateTimeFormatterBuilder | |
DateTimeFormatter | |
java.time | |
| |
ZoneOffset | |
java.util.concurrent | |
CompletableFuture | |
| |
Executors | |
ForkJoinPool | |
ForkJoinTask | |
ForkJoinWorkerThread | |
FutureTask | |
| |
| |
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.net.ssl | |
KeyManagerFactory | |
| |
SSLHandshakeException | |
SSLKeyException | |
SSLParameters | |
SSLPeerUnverifiedException | |
SSLProtocolException | |
TrustManagerFactory | |
| |
SSLSessionContext | |
| |
| |
java.compiler | |
javax.lang.model.element | |
ElementKind | |
javax.lang.model.util | |
Elements | |
javax.lang.model | |
SourceVersion | |
java.desktop | |
java.awt.color | |
| |
| |
| |
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 | |
| |
| |
| |
| |
| |
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 | |
javax.management.loading | |
| |
| |
| |
| |
java.net.http | |
java.net.http | |
HttpClient.Builder | |
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
18.0.2.1+1-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.