New APIs in Java 18
Comparing Java 18 (18.0.2.1+1-tem) with Java 17 (17.0.13+11-tem).
Element | Modification |
---|---|
java.base |
|
java.io |
|
FileInputStream |
|
ObjectInputStream.GetField |
|
|
|
PrintStream |
|
java.lang.invoke |
|
MethodHandle |
|
|
|
java.lang.reflect |
|
Method |
|
|
|
java.lang |
|
Enum |
|
|
|
Math |
|
Object |
|
|
|
Runtime |
|
|
|
|
|
|
|
|
|
StrictMath |
|
System |
|
|
|
Thread |
|
|
|
java.net.spi |
|
java.nio.charset |
|
Charset |
|
java.security |
|
KeyStoreSpi |
|
KeyStore |
|
java.time |
|
Duration |
|
java.util.concurrent |
|
ThreadPoolExecutor |
|
|
|
javax.crypto |
|
DecapsulateException |
|
KEM.Decapsulator |
|
KEM.Encapsulated |
|
KEM.Encapsulator |
|
KEM |
|
KEMSpi.DecapsulatorSpi |
|
KEMSpi.EncapsulatorSpi |
|
KEMSpi |
|
javax.security.auth |
|
Subject |
|
|
|
|
|
java.compiler |
|
javax.annotation.processing |
|
Messager |
|
javax.lang.model.element |
|
ExecutableElement |
|
javax.lang.model.util |
|
Elements |
|
javax.lang.model |
|
SourceVersion |
|
javax.tools |
|
ForwardingJavaFileManager |
|
DocumentationTool.Location |
|
JavaFileManager |
|
java.desktop |
|
java.awt.color |
|
ICC_Profile |
|
finalize() |
|
java.awt.image |
|
ColorModel |
|
finalize() |
|
IndexColorModel |
|
finalize() |
|
java.awt |
|
Graphics |
|
|
|
PrintJob |
|
|
|
javax.imageio.spi |
|
ServiceRegistry |
|
|
|
javax.imageio.stream |
|
FileCacheImageInputStream |
|
|
|
FileImageInputStream |
|
|
|
FileImageOutputStream |
|
|
|
ImageInputStreamImpl |
|
|
|
MemoryCacheImageInputStream |
|
|
|
java.management |
|
java.lang.management |
|
MemoryMXBean |
|
|
|
java.net.http |
|
java.net.http |
|
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 18.0.2.1+1-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.