New APIs in Java 16
Comparing Java 16 (16.0.2+7-tem) with Java 9 (9.0.4-open).
Element | Modification |
---|---|
java.activation | |
java.base | |
java.io | |
ByteArrayInputStream | |
ByteArrayOutputStream | |
FileInputStream | |
finalize() | |
FileOutputStream | |
finalize() | |
FileReader | |
FileWriter | |
InputStream | |
OutputStream | |
PrintStream | |
PrintWriter | |
Reader | |
Writer | |
java.lang.annotation | |
ElementType | |
java.lang.invoke | |
| |
| |
| |
MethodHandles.Lookup | |
| |
MethodHandles | |
| |
| |
| |
| |
| |
java.lang.ref | |
Reference | |
| |
java.lang.reflect | |
MalformedParameterizedTypeException | |
Modifier | |
Modifier() | |
UndeclaredThrowableException | |
getCause() |
|
AnnotatedType | |
| |
| |
| |
InvocationHandler | |
java.lang | |
| |
| |
| |
| |
| |
| |
Character.UnicodeBlock | |
| |
| |
ClassNotFoundException | |
getCause() |
|
| |
| |
| |
| |
| |
ExceptionInInitializerError | |
getCause() |
|
FdLibm.Cbrt | |
Cbrt() |
|
FdLibm.Hypot | |
Hypot() |
|
FdLibm.Pow | |
Pow() |
|
| |
| |
| |
| |
IndexOutOfBoundsException | |
| |
| |
| |
LiveStackFrame.PrimitiveSlot | |
PrimitiveSlot() |
|
| |
| |
| |
Math | |
NullPointerException | |
| |
| |
Runtime.Version | |
| |
| |
| |
Runtime | |
getLocalizedInputStream(InputStream) | |
getLocalizedOutputStream(OutputStream) | |
runFinalizersOnExit(boolean) | |
traceInstructions(boolean) | |
traceMethodCalls(boolean) | |
SecurityManager | |
inCheck | |
checkAwtEventQueueAccess() | |
checkMemberAccess(Class, int) | |
checkSystemClipboardAccess() | |
checkTopLevelWindow(Object) | |
classDepth(String) | |
classLoaderDepth() | |
currentClassLoader() | |
currentLoadedClass() | |
getInCheck() | |
inClass(String) | |
inClassLoader() | |
| |
| |
| |
StrictMath | |
| |
| |
| |
System | |
runFinalizersOnExit(boolean) | |
ThreadGroup | |
| |
| |
| |
| |
| |
| |
| |
| |
Thread | |
destroy() | |
| |
stop(Throwable) | |
| |
Character.UnicodeScript | |
CharSequence | |
StackWalker.StackFrame | |
java.net | |
MulticastSocket | |
| |
| |
| |
| |
| |
| |
supportedOptions() |
|
SecureCacheResponse | |
ServerSocket | |
URLDecoder | |
| |
URLEncoder | |
StandardProtocolFamily | |
java.nio.channels.spi | |
SelectorProvider | |
java.nio.channels | |
Channels | |
SelectionKey | |
Selector | |
ServerSocketChannel | |
SocketChannel | |
java.nio.file | |
FileStore | |
FileSystems | |
Files | |
Path | |
java.nio | |
Buffer | |
ByteBuffer | |
CharBuffer | |
DoubleBuffer | |
FloatBuffer | |
IntBuffer | |
LongBuffer | |
MappedByteBuffer | |
ShortBuffer | |
java.security.acl | |
java.security.cert | |
X509CRLSelector | |
| |
X509CRL | |
| |
X509CertSelector | |
| |
| |
| |
| |
X509Certificate | |
| |
| |
java.security.interfaces | |
DSAPrivateKey | |
| |
DSAPublicKey | |
| |
ECPrivateKey | |
| |
ECPublicKey | |
| |
RSAKey | |
RSAMultiPrimePrivateCrtKey | |
| |
RSAPrivateCrtKey | |
| |
RSAPrivateKey | |
| |
RSAPublicKey | |
| |
java.security.spec | |
| |
getName() | |
MGF1ParameterSpec | |
| |
PSSParameterSpec | |
RSAKeyGenParameterSpec | |
RSAMultiPrimePrivateCrtKeySpec | |
RSAPrivateCrtKeySpec | |
RSAPrivateKeySpec | |
RSAPublicKeySpec | |
java.security | |
| |
| |
PrivilegedActionException | |
getCause() |
|
| |
| |
Key | |
| |
PrivateKey | |
| |
PublicKey | |
| |
java.text.spi | |
NumberFormatProvider | |
java.text | |
DecimalFormatSymbols | |
NumberFormat.Field | |
NumberFormat | |
java.time.chrono | |
JapaneseEra | |
HijrahEra | |
MinguoEra | |
ThaiBuddhistEra | |
java.time.format | |
DateTimeFormatterBuilder | |
DateTimeFormatter | |
java.util.concurrent.locks | |
AbstractQueuedLongSynchronizer | |
| |
LockSupport | |
StampedLock | |
java.util.concurrent | |
CompletableFuture | |
FutureTask | |
PriorityBlockingQueue | |
| |
| |
| |
| |
TimeUnit | |
CompletionStage | |
java.util.function | |
Predicate | |
java.util.jar | |
JarEntry | |
JarFile | |
Pack200 | |
Pack200.Packer | |
Pack200.Unpacker | |
java.util.regex | |
Pattern | |
java.util.spi | |
LocaleNameProvider | |
| |
| |
java.util.stream | |
Collectors | |
DoubleStream | |
IntStream | |
LongStream | |
Stream | |
java.util.zip | |
Deflater | |
finalize() | |
Inflater | |
finalize() | |
ZipFile | |
finalize() | |
java.util | |
ArrayList | |
| |
| |
DoubleSummaryStatistics | |
Formatter | |
HashSet | |
IntSummaryStatistics | |
LongSummaryStatistics | |
NoSuchElementException | |
Objects | |
OptionalDouble | |
OptionalInt | |
OptionalLong | |
Optional | |
PriorityQueue | |
| |
| |
| |
| |
Properties | |
Scanner | |
SplittableRandom | |
TreeMap | |
Collection | |
List | |
Map | |
Set | |
javax.crypto.interfaces | |
DHPrivateKey | |
| |
DHPublicKey | |
| |
PBEKey | |
| |
javax.crypto.spec | |
javax.crypto | |
Cipher | |
SecretKey | |
| |
javax.net.ssl | |
HandshakeCompletedEvent | |
| |
HttpsURLConnection | |
SSLSession | |
| |
javax.security.auth | |
Policy | |
javax.security.cert | |
| |
| |
| |
| |
| |
| |
| |
java.compiler | |
javax.annotation.processing | |
ProcessingEnvironment | |
javax.lang.model.element | |
ElementKind | |
| |
ElementVisitor | |
Element | |
| |
ExecutableElement | |
ModuleElement | |
PackageElement | |
TypeElement | |
TypeParameterElement | |
VariableElement | |
javax.lang.model.type | |
TypeMirror | |
| |
| |
| |
javax.lang.model.util | |
AbstractAnnotationValueVisitor7 | |
| |
AbstractElementVisitor6 | |
AbstractElementVisitor7 | |
| |
AbstractTypeVisitor7 | |
| |
ElementFilter | |
ElementKindVisitor6 | |
ElementKindVisitor7 | |
| |
| |
ElementScanner7 | |
| |
| |
SimpleAnnotationValueVisitor7 | |
| |
| |
SimpleElementVisitor7 | |
| |
| |
SimpleTypeVisitor7 | |
| |
| |
TypeKindVisitor6 | |
TypeKindVisitor7 | |
| |
| |
TypeKindVisitor9 | |
Elements | |
javax.lang.model | |
SourceVersion | |
javax.tools | |
ToolProvider | |
ToolProvider() | |
StandardJavaFileManager | |
| |
java.corba | |
java.desktop | |
java.awt.color | |
ICC_Profile | |
| |
java.awt.dnd | |
DragSourceAdapter | |
| |
DropTargetAdapter | |
| |
java.awt.event | |
ComponentAdapter | |
| |
ContainerAdapter | |
| |
FocusAdapter | |
| |
HierarchyBoundsAdapter | |
| |
KeyAdapter | |
| |
MouseAdapter | |
| |
MouseMotionAdapter | |
| |
WindowAdapter | |
| |
java.awt.font | |
GlyphVector | |
| |
LayoutPath | |
| |
LineMetrics | |
| |
java.awt.geom | |
Path2D.Double | |
Path2D.Float | |
Path2D | |
java.awt.image | |
AbstractMultiResolutionImage | |
| |
BufferStrategy | |
| |
ColorModel | |
| |
IndexColorModel | |
| |
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 | |
| |
Image | |
| |
PrintJob | |
| |
Toolkit | |
| |
| |
java.beans | |
PersistenceDelegate | |
| |
javax.accessibility | |
AccessibleContext | |
| |
AccessibleHyperlink | |
| |
javax.print.attribute.standard | |
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 | |
BasicLookAndFeel | |
| |
BasicMenuUI | |
| |
BasicRadioButtonUI | |
installListeners(AbstractButton) |
|
uninstallListeners(AbstractButton) |
|
BasicSliderUI | |
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 | |
| |
DefaultComboBoxModel | |
DefaultListModel | |
FocusManager | |
| |
InputVerifier | |
| |
InternalFrameFocusTraversalPolicy | |
| |
JFormattedTextField.AbstractFormatterFactory | |
| |
JFormattedTextField.AbstractFormatter | |
| |
JPasswordField | |
| |
| |
LookAndFeel | |
| |
RowFilter | |
| |
ButtonModel | |
ListSelectionModel | |
java.logging | |
java.util.logging | |
LogRecord | |
| |
| |
java.management.rmi | |
javax.management.remote.rmi | |
RMIConnectorServer | |
| |
CREDENTIAL_TYPES |
|
| |
java.management | |
java.lang.management | |
RuntimeMXBean | |
ThreadMXBean | |
javax.management.relation | |
RoleStatus | |
| |
java.naming | |
javax.naming.directory | |
Attribute | |
| |
javax.naming | |
Name | |
| |
java.rmi | |
java.rmi.activation | |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
java.rmi.server | |
RemoteRef | |
| |
ServerRef | |
| |
java.security.jgss | |
javax.security.auth.kerberos | |
KerberosPrincipal | |
java.sql | |
javax.transaction.xa | |
java.transaction | |
java.xml.bind | |
java.xml.crypto | |
javax.xml.crypto.dsig.keyinfo | |
KeyValue | |
javax.xml.crypto.dsig | |
CanonicalizationMethod | |
DigestMethod | |
SignatureMethod | |
java.xml.ws.annotation | |
java.xml.ws | |
java.xml | |
javax.xml.parsers | |
DocumentBuilderFactory | |
SAXParserFactory | |
javax.xml.stream | |
XMLInputFactory | |
|
This report is based on simple comparison of all public
and
protected
APIs of the java.*
and javax.*
packages of JDK builds 16.0.2+7-tem and
9.0.4-open. 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.