New APIs in Java 18
Comparing Java 18 (18.0.2.1+1-tem) with Java 12 (12.0.2+10-adpt).
Element | Modification |
---|---|
java.base |
|
java.io |
|
CharArrayReader |
|
|
|
Console |
|
FileInputStream |
|
|
|
|
|
InputStreamReader |
|
|
|
ObjectInputFilter.Config |
|
ObjectInputStream.GetField |
|
|
|
PrintStream |
|
WriteAbortedException |
|
|
|
ObjectInputFilter |
|
java.lang.annotation |
|
ElementType |
|
java.lang.constant |
|
ConstantDescs |
|
|
|
|
|
|
|
|
|
|
|
java.lang.invoke |
|
ClassSpecializer.Factory |
|
Factory(ClassSpecializer) |
|
ConstantBootstraps |
|
ConstantBootstraps() |
|
MethodHandle |
|
|
|
MethodHandles.Lookup |
|
|
|
MethodHandles |
|
VarHandle |
|
|
|
|
|
|
|
java.lang.ref |
|
Reference |
|
|
|
java.lang.reflect |
|
AccessibleObject |
|
|
|
|
|
Method |
|
|
|
Modifier |
|
Modifier() |
|
AnnotatedType |
|
|
|
|
|
|
|
InvocationHandler |
|
java.lang |
|
|
|
|
|
|
|
|
|
|
|
|
|
Character.UnicodeBlock |
|
|
|
|
|
Class |
|
Double |
|
|
|
|
|
Enum |
|
|
|
Float |
|
|
|
|
|
|
|
IndexOutOfBoundsException |
|
Integer |
|
|
|
|
|
LiveStackFrame.PrimitiveSlot |
|
PrimitiveSlot() |
|
Long |
|
|
|
|
|
Math |
|
NullPointerException |
|
|
|
|
|
Object |
|
|
|
Process |
|
Runtime |
|
|
|
|
|
|
|
|
|
traceInstructions(boolean) |
|
traceMethodCalls(boolean) |
|
|
|
|
|
|
|
|
|
|
|
StrictMath |
|
String |
|
System |
|
|
|
|
|
|
|
ThreadGroup |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Thread |
|
|
|
|
|
|
|
|
|
Character.UnicodeScript |
|
CharSequence |
|
java.net.spi |
|
java.net |
|
DatagramSocket |
|
|
|
MulticastSocket |
|
|
|
|
|
|
|
|
|
|
|
|
|
supportedOptions() |
|
ServerSocket |
|
|
|
Socket |
|
|
|
URLDecoder |
|
URLDecoder() |
|
StandardProtocolFamily |
|
java.nio.channels.spi |
|
SelectorProvider |
|
java.nio.channels |
|
ServerSocketChannel |
|
SocketChannel |
|
java.nio.charset |
|
Charset |
|
java.nio.file |
|
FileSystems |
|
java.nio |
|
Buffer |
|
ByteBuffer |
|
CharBuffer |
|
DoubleBuffer |
|
FloatBuffer |
|
IntBuffer |
|
LongBuffer |
|
MappedByteBuffer |
|
ShortBuffer |
|
java.security.acl |
|
java.security.cert |
|
X509CRLSelector |
|
|
|
X509CRL |
|
|
|
X509CertSelector |
|
|
|
|
|
|
|
|
|
X509Certificate |
|
|
|
|
|
java.security.interfaces |
|
java.security.spec |
|
MGF1ParameterSpec |
|
|
|
NamedParameterSpec |
|
java.security |
|
|
|
|
|
|
|
KeyStoreSpi |
|
KeyStore |
|
|
|
|
|
|
|
|
|
java.text |
|
CompactNumberFormat |
|
DecimalFormatSymbols |
|
java.time.chrono |
|
JapaneseEra |
|
java.time.format |
|
DateTimeFormatterBuilder |
|
java.time |
|
|
|
Duration |
|
java.util.concurrent.locks |
|
AbstractQueuedLongSynchronizer |
|
|
|
LockSupport |
|
java.util.concurrent |
|
Executors |
|
|
|
|
|
|
|
ForkJoinPool |
|
|
|
|
|
|
|
ThreadLocalRandom |
|
nextGaussian() |
|
ThreadPoolExecutor |
|
|
|
java.util.jar |
|
Pack200 |
|
Pack200.Packer |
|
Pack200.Unpacker |
|
java.util.stream |
|
DoubleStream |
|
IntStream |
|
LongStream |
|
Stream |
|
java.util |
|
HashSet |
|
NoSuchElementException |
|
Objects |
|
|
|
|
|
nextBoolean() |
|
nextDouble() |
|
nextDouble(double) |
|
nextDouble(double, double) |
|
nextInt(int) |
|
nextInt(int, int) |
|
nextLong(long) |
|
nextLong(long, long) |
|
TreeMap |
|
Map.Entry |
|
javax.net.ssl |
|
HandshakeCompletedEvent |
|
|
|
SSLSession |
|
|
|
javax.security.auth |
|
|
|
Subject |
|
|
|
|
|
|
|
|
|
|
|
javax.security.cert |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
java.compiler |
|
javax.annotation.processing |
|
Messager |
|
ProcessingEnvironment |
|
javax.lang.model.element |
|
ElementKind |
|
|
|
ElementVisitor |
|
Element |
|
|
|
ExecutableElement |
|
ModuleElement |
|
PackageElement |
|
TypeElement |
|
TypeParameterElement |
|
VariableElement |
|
javax.lang.model.type |
|
TypeMirror |
|
|
|
|
|
|
|
javax.lang.model.util |
|
AbstractElementVisitor6 |
|
ElementFilter |
|
ElementKindVisitor6 |
|
Elements |
|
javax.lang.model |
|
SourceVersion |
|
javax.tools |
|
ForwardingJavaFileManager |
|
ToolProvider |
|
ToolProvider() |
|
DocumentationTool.Location |
|
JavaFileManager |
|
StandardJavaFileManager |
|
|
|
java.datatransfer |
|
java.awt.datatransfer |
|
DataFlavor |
|
|
|
|
|
|
|
java.desktop |
|
java.applet |
|
|
|
|
|
|
|
|
|
java.awt.color |
|
ICC_Profile |
|
finalize() |
|
java.awt.dnd |
|
DragSourceAdapter |
|
|
|
DropTargetAdapter |
|
|
|
java.awt.event |
|
ComponentAdapter |
|
|
|
ContainerAdapter |
|
|
|
FocusAdapter |
|
|
|
HierarchyBoundsAdapter |
|
|
|
KeyAdapter |
|
|
|
MouseAdapter |
|
|
|
MouseMotionAdapter |
|
|
|
WindowAdapter |
|
|
|
java.awt.font |
|
GlyphVector |
|
|
|
LayoutPath |
|
|
|
LineMetrics |
|
|
|
java.awt.image |
|
AbstractMultiResolutionImage |
|
|
|
BufferStrategy |
|
|
|
ColorModel |
|
finalize() |
|
IndexColorModel |
|
finalize() |
|
RGBImageFilter |
|
|
|
VolatileImage |
|
|
|
java.awt.peer |
|
ComponentPeer |
|
checkImage(Image, int, int, ImageObserver) |
|
createImage(ImageProducer) |
|
prepareImage(Image, int, int, ImageObserver) |
|
MenuPeer |
|
addSeparator() |
|
RobotPeer |
|
dispose() |
|
|
|
java.awt |
|
FocusTraversalPolicy |
|
|
|
Graphics |
|
|
|
Image |
|
|
|
PrintJob |
|
|
|
|
|
Toolkit |
|
|
|
java.beans |
|
Beans |
|
|
|
PersistenceDelegate |
|
|
|
|
|
javax.accessibility |
|
AccessibleContext |
|
|
|
AccessibleHyperlink |
|
|
|
javax.imageio.spi |
|
ServiceRegistry |
|
|
|
javax.imageio.stream |
|
FileCacheImageInputStream |
|
|
|
FileImageInputStream |
|
|
|
FileImageOutputStream |
|
|
|
ImageInputStreamImpl |
|
|
|
MemoryCacheImageInputStream |
|
|
|
javax.print.event |
|
PrintJobAdapter |
|
|
|
javax.print |
|
PrintServiceLookup |
|
|
|
ServiceUIFactory |
|
|
|
StreamPrintServiceFactory |
|
|
|
javax.sound.midi.spi |
|
MidiDeviceProvider |
|
|
|
MidiFileReader |
|
|
|
MidiFileWriter |
|
|
|
SoundbankReader |
|
|
|
javax.sound.sampled.spi |
|
AudioFileReader |
|
|
|
AudioFileWriter |
|
|
|
FormatConversionProvider |
|
|
|
MixerProvider |
|
|
|
javax.swing.border |
|
AbstractBorder |
|
|
|
javax.swing.colorchooser |
|
AbstractColorChooserPanel |
|
|
|
javax.swing.event |
|
InternalFrameAdapter |
|
|
|
MouseInputAdapter |
|
|
|
javax.swing.filechooser |
|
FileFilter |
|
|
|
FileSystemView |
|
FileView |
|
|
|
javax.swing.plaf.basic |
|
BasicDirectoryModel |
|
|
|
|
|
|
|
BasicLookAndFeel |
|
|
|
|
|
BasicRadioButtonUI |
|
installListeners(AbstractButton) |
|
uninstallListeners(AbstractButton) |
|
|
|
|
|
|
|
|
|
BasicSliderUI |
|
BasicToolBarUI |
|
|
|
javax.swing.plaf.metal |
|
MetalTheme |
|
|
|
javax.swing.plaf.synth |
|
SynthDesktopIconUI |
|
|
|
SynthPainter |
|
|
|
javax.swing.plaf |
|
ButtonUI |
|
|
|
ColorChooserUI |
|
|
|
ComboBoxUI |
|
|
|
DesktopIconUI |
|
|
|
DesktopPaneUI |
|
|
|
FileChooserUI |
|
|
|
InternalFrameUI |
|
|
|
LabelUI |
|
|
|
ListUI |
|
|
|
MenuBarUI |
|
|
|
MenuItemUI |
|
|
|
OptionPaneUI |
|
|
|
PanelUI |
|
|
|
PopupMenuUI |
|
|
|
ProgressBarUI |
|
|
|
RootPaneUI |
|
|
|
ScrollBarUI |
|
|
|
ScrollPaneUI |
|
|
|
SeparatorUI |
|
|
|
SliderUI |
|
|
|
SpinnerUI |
|
|
|
SplitPaneUI |
|
|
|
TabbedPaneUI |
|
|
|
TableHeaderUI |
|
|
|
TableUI |
|
|
|
TextUI |
|
|
|
ToolBarUI |
|
|
|
ToolTipUI |
|
|
|
TreeUI |
|
|
|
ViewportUI |
|
|
|
javax.swing.table |
|
AbstractTableModel |
|
|
|
TableStringConverter |
|
|
|
javax.swing.text.html |
|
HTMLDocument.Iterator |
|
|
|
HTMLEditorKit.Parser |
|
|
|
javax.swing.text |
|
DefaultTextUI |
|
|
|
DocumentFilter.FilterBypass |
|
|
|
GlyphView.GlyphPainter |
|
|
|
LayeredHighlighter.LayerPainter |
|
|
|
LayeredHighlighter |
|
|
|
NavigationFilter.FilterBypass |
|
|
|
javax.swing.tree |
|
AbstractLayoutCache.NodeDimensions |
|
|
|
AbstractLayoutCache |
|
|
|
javax.swing |
|
AbstractButton |
|
|
|
AbstractCellEditor |
|
|
|
AbstractListModel |
|
|
|
AbstractSpinnerModel |
|
|
|
FocusManager |
|
|
|
InputVerifier |
|
|
|
InternalFrameFocusTraversalPolicy |
|
|
|
|
|
JFormattedTextField.AbstractFormatterFactory |
|
|
|
JFormattedTextField.AbstractFormatter |
|
|
|
JPasswordField |
|
|
|
|
|
LookAndFeel |
|
|
|
RepaintManager |
|
|
|
RowFilter |
|
|
|
java.logging |
|
java.util.logging |
|
LogManager |
|
|
|
LogRecord |
|
|
|
|
|
java.management.rmi |
|
javax.management.remote.rmi |
|
RMIConnectorServer |
|
CREDENTIAL_TYPES |
|
java.management |
|
java.lang.management |
|
MemoryMXBean |
|
|
|
javax.management.relation |
|
RoleStatus |
|
|
|
java.naming |
|
javax.naming |
|
Context |
|
|
|
java.net.http |
|
java.net.http |
|
HttpRequest.BodyPublishers |
|
HttpRequest |
|
HttpRequest.Builder |
|
java.rmi |
|
java.rmi.activation |
|
java.rmi |
|
|
|
java.security.jgss |
|
javax.security.auth.kerberos |
|
KerberosPrincipal |
|
java.xml.crypto |
|
javax.xml.crypto.dsig.keyinfo |
|
KeyValue |
|
javax.xml.crypto.dsig.spec |
|
javax.xml.crypto.dsig |
|
CanonicalizationMethod |
|
SignatureMethod |
|
java.xml |
|
javax.xml.parsers |
|
DocumentBuilderFactory |
|
SAXParserFactory |
|
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
12.0.2+10-adpt. 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.