New APIs in Java 26
Comparing Java 26 (26-ea+22-2263-open) with Java 21 (21.0.9+10-LTS-tem).
| Element | Modification | 
|---|---|
java.base  | 
    |
java.io  | 
    |
Console  | 
    |
  | 
  |
ObjectInputStream  | 
    |
  | 
  |
  | 
  |
ObjectOutputStream.PutField  | 
    |
  | 
  |
ObjectOutputStream  | 
    |
  | 
  |
  | 
  |
  | 
  |
Reader  | 
    |
  | 
  |
java.lang.constant  | 
    |
  | 
  |
ClassDesc  | 
    |
  | 
  |
  | 
  |
  | 
  |
java.lang.foreign  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
isTrivial()  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
sequenceLayout(MemoryLayout)  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
getUtf8String(long)  | 
    |
  | 
  |
segmentOffset(MemorySegment)  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
setUtf8String(long, String)  | 
    |
  | 
  |
  | 
  |
allocate(AddressLayout, MemorySegment)  | 
    |
allocate(ValueLayout.OfByte, byte)  | 
    |
allocate(ValueLayout.OfChar, char)  | 
    |
allocate(ValueLayout.OfDouble, double)  | 
    |
allocate(ValueLayout.OfFloat, float)  | 
    |
allocate(ValueLayout.OfInt, int)  | 
    |
allocate(ValueLayout.OfLong, long)  | 
    |
allocate(ValueLayout.OfShort, short)  | 
    |
allocateArray(MemoryLayout, long)  | 
    |
allocateArray(ValueLayout.OfByte, byte...)  | 
    |
allocateArray(ValueLayout.OfChar, char...)  | 
    |
allocateArray(ValueLayout.OfDouble, double...)  | 
    |
allocateArray(ValueLayout.OfFloat, float...)  | 
    |
allocateArray(ValueLayout.OfInt, int...)  | 
    |
allocateArray(ValueLayout.OfLong, long...)  | 
    |
allocateArray(ValueLayout.OfShort, short...)  | 
    |
allocateUtf8String(String)  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
arrayElementVarHandle(int...)  | 
    |
java.lang.invoke  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
memorySegmentViewVarHandle(ValueLayout)  | 
    |
  | 
  |
StringConcatFactory  | 
    |
MAX_INDY_CONCAT_ARG_SLOTS  | 
    |
makeConcatWithTemplate(List, List)  | 
    |
makeConcatWithTemplateCluster(List, List, int)  | 
    |
makeConcatWithTemplateGetters(List, List, int)  | 
    |
java.lang.module  | 
    |
  | 
  |
java.lang.reflect  | 
    |
  | 
  |
  | 
  |
AccessFlag.Location  | 
    |
AccessFlag  | 
    |
ClassFileFormatVersion  | 
    |
java.lang.runtime  | 
    |
  | 
  |
  | 
  |
TemplateRuntime  | 
    |
java.lang  | 
    |
Boolean  | 
    |
  | 
  |
  | 
  |
Byte  | 
    |
  | 
  |
  | 
  |
Character.UnicodeBlock  | 
    |
Character  | 
    |
  | 
  |
Class  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
isUnnamedClass()  | 
    |
Double  | 
    |
  | 
  |
  | 
  |
Float  | 
    |
  | 
  |
  | 
  |
  | 
  |
Integer  | 
    |
  | 
  |
  | 
  |
Long  | 
    |
  | 
  |
  | 
  |
Math  | 
    |
ModuleLayer.Controller  | 
    |
  | 
  |
Module  | 
    |
  | 
  |
  | 
  |
Process  | 
    |
  | 
  |
  | 
  |
  | 
  |
call(Callable)  | 
    |
get(Supplier)  | 
    |
  | 
  |
callWhere(ScopedValue, Object, Callable)  | 
    |
getWhere(ScopedValue, Object, Supplier)  | 
    |
runWhere(ScopedValue, Object, Runnable)  | 
    |
SecurityManager  | 
    |
  | 
  |
Short  | 
    |
  | 
  |
  | 
  |
StrictMath  | 
    |
ThreadGroup  | 
    |
resume()  | 
    |
stop()  | 
    |
suspend()  | 
    |
Thread  | 
    |
countStackFrames()  | 
    |
resume()  | 
    |
stop()  | 
    |
suspend()  | 
    |
Character.UnicodeScript  | 
    |
StackWalker.Option  | 
    |
CharSequence  | 
    |
StringTemplate.Processor.Linkage  | 
    |
StringTemplate.Processor  | 
    |
StringTemplate  | 
    |
java.math  | 
    |
BigInteger  | 
    |
java.net  | 
    |
DatagramSocketImpl  | 
    |
getTTL()  | 
    |
setTTL(byte)  | 
    |
HttpURLConnection  | 
    |
  | 
  |
Inet4Address  | 
    |
Inet6Address  | 
    |
InetAddress  | 
    |
  | 
  |
MulticastSocket  | 
    |
getTTL()  | 
    |
send(DatagramPacket, byte)  | 
    |
setTTL(byte)  | 
    |
  | 
  |
  | 
  |
Socket  | 
    |
  | 
  |
  | 
  |
URLConnection  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
java.nio.channels  | 
    |
FileChannel  | 
    |
  | 
  |
java.nio.charset  | 
    |
  | 
  |
  | 
  |
StandardCharsets  | 
    |
java.nio.file  | 
    |
  | 
  |
Path  | 
    |
java.nio  | 
    |
CharBuffer  | 
    |
  | 
  |
toString()  | 
    |
java.security.cert  | 
    |
  | 
  |
  | 
  |
java.security.interfaces  | 
    |
  | 
  |
DSAPrivateKey  | 
    |
DSAPublicKey  | 
    |
ECPrivateKey  | 
    |
ECPublicKey  | 
    |
EdECPrivateKey  | 
    |
EdECPublicKey  | 
    |
RSAPrivateKey  | 
    |
RSAPublicKey  | 
    |
XECPrivateKey  | 
    |
XECPublicKey  | 
    |
java.security.spec  | 
    |
NamedParameterSpec  | 
    |
  | 
  |
  | 
  |
java.security  | 
    |
  | 
  |
  | 
  |
SecureRandom  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
java.text  | 
    |
ChoiceFormat  | 
    |
CompactNumberFormat  | 
    |
DecimalFormat  | 
    |
MessageFormat  | 
    |
NumberFormat  | 
    |
SimpleDateFormat  | 
    |
java.time  | 
    |
Duration  | 
    |
Instant  | 
    |
java.util.concurrent.locks  | 
    |
  | 
  |
java.util.concurrent  | 
    |
  | 
  |
  | 
  |
  | 
  |
ForkJoinTask  | 
    |
StructuredTaskScope.ShutdownOnFailure  | 
    |
StructuredTaskScope.ShutdownOnSuccess  | 
    |
StructuredTaskScope.Subtask  | 
    |
task()  | 
    |
  | 
  |
StructuredTaskScope()  | 
    |
StructuredTaskScope(String, ThreadFactory)  | 
    |
  | 
  |
ensureOwnerAndJoined()  | 
    |
  | 
  |
handleComplete(StructuredTaskScope.Subtask)  | 
    |
isShutdown()  | 
    |
join()  | 
    |
joinUntil(Instant)  | 
    |
shutdown()  | 
    |
toString()  | 
    |
java.util.random  | 
    |
RandomGenerator  | 
    |
java.util.stream  | 
    |
Stream  | 
    |
java.util.zip  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
ZipFile  | 
    |
java.util  | 
    |
  | 
  |
  | 
  |
Currency  | 
    |
FormatProcessor  | 
    |
  | 
  |
  | 
  |
TimeZone  | 
    |
  | 
  |
Comparator  | 
    |
javax.crypto.interfaces  | 
    |
DHPrivateKey  | 
    |
DHPublicKey  | 
    |
javax.crypto.spec  | 
    |
javax.crypto  | 
    |
  | 
  |
javax.net.ssl  | 
    |
ExtendedSSLSession  | 
    |
  | 
  |
javax.security.auth  | 
    |
  | 
  |
  | 
  |
java.compiler  | 
    |
javax.lang.model.element  | 
    |
RecordComponentElement  | 
    |
TypeElement  | 
    |
isUnnamed()  | 
    |
VariableElement  | 
    |
  | 
  |
javax.lang.model.util  | 
    |
ElementScanner6  | 
    |
Elements  | 
    |
Types  | 
    |
javax.lang.model  | 
    |
SourceVersion  | 
    |
javax.tools  | 
    |
SimpleJavaFileObject  | 
    |
java.desktop  | 
    |
java.applet  | 
    |
java.awt  | 
    |
  | 
  |
KeyboardFocusManager  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
Window  | 
    |
  | 
  |
  | 
  |
java.beans.beancontext  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
java.beans  | 
    |
Beans  | 
    |
  | 
  |
instantiate(ClassLoader, String, BeanContext,...  | 
    |
  | 
  |
  | 
  |
AppletInitializer  | 
    |
javax.imageio.spi  | 
    |
ServiceRegistry  | 
    |
finalize()  | 
    |
javax.imageio.stream  | 
    |
FileCacheImageInputStream  | 
    |
finalize()  | 
    |
FileImageInputStream  | 
    |
finalize()  | 
    |
FileImageOutputStream  | 
    |
finalize()  | 
    |
ImageInputStreamImpl  | 
    |
finalize()  | 
    |
MemoryCacheImageInputStream  | 
    |
finalize()  | 
    |
javax.print.attribute.standard  | 
    |
javax.sound.sampled  | 
    |
  | 
  |
javax.swing.plaf.basic  | 
    |
BasicSliderUI  | 
    |
BasicSliderUI()  | 
    |
BasicSplitPaneDivider  | 
    |
javax.swing.plaf.synth  | 
    |
SynthLookAndFeel  | 
    |
load(URL)  | 
    |
SynthPasswordFieldUI  | 
    |
installKeyboardActions()  | 
    |
SynthTreeUI  | 
    |
javax.swing  | 
    |
FocusManager  | 
    |
  | 
  |
JApplet.AccessibleJApplet  | 
    |
JApplet  | 
    |
JFileChooser  | 
    |
JInternalFrame  | 
    |
  | 
  |
JScrollBar  | 
    |
JSplitPane  | 
    |
RepaintManager  | 
    |
addDirtyRegion(Applet, int, int, int, int)  | 
    |
UIManager  | 
    |
  | 
  |
java.logging  | 
    |
java.util.logging  | 
    |
FileHandler  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
Handler  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
LogManager  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
Logger  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
MemoryHandler  | 
    |
  | 
  |
  | 
  |
SocketHandler  | 
    |
  | 
  |
StreamHandler  | 
    |
  | 
  |
  | 
  |
  | 
  |
java.management.rmi  | 
    |
javax.management.remote.rmi  | 
    |
RMIConnector  | 
    |
getMBeanServerConnection(Subject)  | 
    |
java.management  | 
    |
java.lang.management  | 
    |
  | 
  |
javax.management.loading  | 
    |
MLetContent  | 
    |
MLet  | 
    |
PrivateMLet  | 
    |
MLetMBean  | 
    |
javax.management.modelmbean  | 
    |
DescriptorSupport  | 
    |
DescriptorSupport(String)  | 
    |
toXMLString()  | 
    |
XMLParseException  | 
    |
javax.management.remote  | 
    |
  | 
  |
JMXConnector  | 
    |
  | 
  |
javax.management  | 
    |
  | 
  |
  | 
  |
  | 
  |
java.naming  | 
    |
javax.naming  | 
    |
Context  | 
    |
APPLET  | 
    |
java.net.http  | 
    |
java.net.http  | 
    |
HttpRequest.BodyPublishers  | 
    |
HttpRequest  | 
    |
HttpResponse.BodyHandlers  | 
    |
HttpResponse.BodySubscribers  | 
    |
HttpClient.Version  | 
    |
HttpRequest.Builder  | 
    |
HttpResponse.PushPromiseHandler  | 
    |
HttpResponse  | 
    |
java.rmi  | 
    |
java.rmi.server  | 
    |
RMIClassLoader  | 
    |
  | 
  |
java.security.jgss  | 
    |
javax.security.auth.kerberos  | 
    |
  | 
  |
  | 
  |
java.xml.crypto  | 
    |
javax.xml.crypto.dsig  | 
    |
SignatureMethod  | 
    |
java.xml  | 
    |
javax.xml.catalog  | 
    |
CatalogManager  | 
    |
  This report is based on simple comparison of all public and
  protected APIs of the Java SE packages of JDK builds
  26-ea+22-2263-open and 21.0.9+10-LTS-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.