New APIs in Java 18
Comparing Java 18 (18.0.2.1+1-tem) with Java 16 (16.0.2+7-tem).
Element | Modification |
---|---|
java.base |
|
java.io |
|
CharArrayReader |
|
|
|
Console |
|
FileInputStream |
|
|
|
|
|
InputStreamReader |
|
|
|
ObjectInputFilter.Config |
|
ObjectInputStream.GetField |
|
|
|
PrintStream |
|
WriteAbortedException |
|
|
|
ObjectInputFilter |
|
java.lang.constant |
|
|
|
|
|
|
|
|
|
|
|
java.lang.invoke |
|
MethodHandle |
|
|
|
MethodHandles |
|
java.lang.reflect |
|
AccessibleObject |
|
|
|
|
|
Method |
|
|
|
java.lang.runtime |
|
java.lang |
|
Class |
|
|
|
|
|
Enum |
|
|
|
Math |
|
Object |
|
|
|
Process |
|
Runtime |
|
|
|
|
|
|
|
|
|
|
|
|
|
StrictMath |
|
System |
|
|
|
|
|
|
|
ThreadGroup |
|
|
|
Thread |
|
|
|
|
|
java.net.spi |
|
java.net |
|
DatagramSocket |
|
|
|
ServerSocket |
|
|
|
Socket |
|
|
|
URLDecoder |
|
URLDecoder() |
|
java.nio.charset |
|
Charset |
|
java.nio |
|
MappedByteBuffer |
|
java.security |
|
|
|
|
|
|
|
KeyStoreSpi |
|
KeyStore |
|
|
|
|
|
|
|
|
|
java.time |
|
|
|
Duration |
|
java.util.concurrent |
|
Executors |
|
|
|
|
|
|
|
ForkJoinPool |
|
|
|
|
|
|
|
ThreadLocalRandom |
|
nextGaussian() |
|
ThreadPoolExecutor |
|
|
|
java.util |
|
|
|
|
|
nextBoolean() |
|
nextDouble() |
|
nextDouble(double) |
|
nextDouble(double, double) |
|
nextInt(int) |
|
nextInt(int, int) |
|
nextLong(long) |
|
nextLong(long, long) |
|
Map.Entry |
|
javax.security.auth |
|
|
|
Subject |
|
|
|
|
|
|
|
|
|
|
|
java.compiler |
|
javax.annotation.processing |
|
Messager |
|
javax.lang.model.element |
|
Modifier |
|
|
|
|
|
ExecutableElement |
|
TypeElement |
|
|
|
javax.lang.model.util |
|
Elements |
|
javax.lang.model |
|
SourceVersion |
|
javax.tools |
|
ForwardingJavaFileManager |
|
DocumentationTool.Location |
|
JavaFileManager |
|
java.datatransfer |
|
java.awt.datatransfer |
|
DataFlavor |
|
|
|
|
|
|
|
java.desktop |
|
java.applet |
|
|
|
|
|
|
|
|
|
java.awt.color |
|
ICC_Profile |
|
finalize() |
|
java.awt.image |
|
ColorModel |
|
finalize() |
|
IndexColorModel |
|
finalize() |
|
java.awt |
|
Graphics |
|
|
|
PrintJob |
|
|
|
java.beans |
|
Beans |
|
|
|
|
|
javax.imageio.spi |
|
ServiceRegistry |
|
|
|
javax.imageio.stream |
|
FileCacheImageInputStream |
|
|
|
FileImageInputStream |
|
|
|
FileImageOutputStream |
|
|
|
ImageInputStreamImpl |
|
|
|
MemoryCacheImageInputStream |
|
|
|
javax.swing.filechooser |
|
FileSystemView |
|
javax.swing.plaf.basic |
|
BasicDirectoryModel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BasicToolBarUI |
|
|
|
javax.swing |
|
|
|
|
|
RepaintManager |
|
|
|
java.logging |
|
java.util.logging |
|
LogManager |
|
|
|
java.management |
|
java.lang.management |
|
MemoryMXBean |
|
|
|
java.naming |
|
javax.naming |
|
Context |
|
|
|
java.net.http |
|
java.net.http |
|
HttpRequest.Builder |
|
java.rmi |
|
java.rmi.activation |
|
java.rmi |
|
|
|
java.xml.crypto |
|
javax.xml.crypto.dsig.spec |
|
javax.xml.crypto.dsig |
|
SignatureMethod |
|
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
16.0.2+7-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.