New APIs in Java 26
Comparing Java 26 (26-ea+22-2263-open) with Java 19 (19.0.2+7-tem).
| Element | Modification | 
|---|---|
java.base  | 
    |
java.io  | 
    |
BufferedInputStream  | 
    |
  | 
  |
  | 
  |
ObjectInputStream  | 
    |
  | 
  |
  | 
  |
ObjectOutputStream.PutField  | 
    |
  | 
  |
ObjectOutputStream  | 
    |
  | 
  |
  | 
  |
  | 
  |
PushbackInputStream  | 
    |
Reader  | 
    |
SequenceInputStream  | 
    |
  | 
  |
java.lang.constant  | 
    |
ConstantDescs  | 
    |
  | 
  |
ClassDesc  | 
    |
  | 
  |
  | 
  |
  | 
  |
MethodHandleDesc  | 
    |
MethodTypeDesc  | 
    |
  | 
  |
java.lang.foreign  | 
    |
ValueLayout.OfAddress  | 
    
  | 
  
Addressable  | 
    |
  | 
  |
  | 
  |
  | 
  |
asVariadic(MemoryLayout...)  | 
    |
  | 
  |
  | 
  |
equals(Object)  | 
    |
firstVariadicArgumentIndex()  | 
    |
hashCode()  | 
    |
  | 
  |
  | 
  |
toString()  | 
    |
  | 
  |
equals(Object)  | 
    |
hashCode()  | 
    |
isStruct()  | 
    |
isUnion()  | 
    |
  | 
  |
toString()  | 
    |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
downcallHandle(Addressable, FunctionDescriptor)  | 
    |
downcallHandle(FunctionDescriptor)  | 
    |
downcallType(FunctionDescriptor)  | 
    |
upcallStub(MethodHandle, FunctionDescriptor,...  | 
    |
upcallType(FunctionDescriptor)  | 
    |
MemoryAddress  | 
    |
  | 
  |
  | 
  |
bitAlignment()  | 
    |
bitOffset(MemoryLayout.PathElement...)  | 
    |
bitOffsetHandle(MemoryLayout.PathElement...)  | 
    |
bitSize()  | 
    |
  | 
  |
  | 
  |
  | 
  |
isPadding()  | 
    |
paddingLayout(long)  | 
    |
  | 
  |
  | 
  |
structLayout(MemoryLayout...)  | 
    |
unionLayout(MemoryLayout...)  | 
    |
valueLayout(Class, ByteOrder)  | 
    |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
address()  | 
    |
allocateNative(MemoryLayout, MemorySession)  | 
    |
allocateNative(long, MemorySession)  | 
    |
allocateNative(long, long, MemorySession)  | 
    |
  | 
  |
  | 
  |
get(ValueLayout.OfAddress, long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
getAtIndex(ValueLayout.OfAddress, long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
getUtf8String(long)  | 
    |
ofAddress(MemoryAddress, long, MemorySession)  | 
    |
segmentOffset(MemorySegment)  | 
    |
session()  | 
    |
set(ValueLayout.OfAddress, long, Addressable)  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
setAtIndex(ValueLayout.OfAddress, long,...  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
setUtf8String(long, String)  | 
    |
MemorySession  | 
    |
  | 
  |
allocate(ValueLayout.OfAddress, Addressable)  | 
    |
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)  | 
    |
implicitAllocator()  | 
    |
newNativeArena(MemorySession)  | 
    |
newNativeArena(long, MemorySession)  | 
    |
newNativeArena(long, long, MemorySession)  | 
    |
  | 
  |
  | 
  |
  | 
  |
equals(Object)  | 
    |
  | 
  |
hashCode()  | 
    |
  | 
  |
toString()  | 
    |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
libraryLookup(Path, MemorySession)  | 
    |
libraryLookup(String, MemorySession)  | 
    |
lookup(String)  | 
    |
VaList.Builder  | 
    |
VaList  | 
    |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
  | 
  |
arrayElementVarHandle(int...)  | 
    |
  | 
  |
equals(Object)  | 
    |
hashCode()  | 
    |
  | 
  |
toString()  | 
    |
withBitAlignment(long)  | 
    |
  | 
  |
  | 
  |
java.lang.invoke  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
memorySegmentViewVarHandle(ValueLayout)  | 
    |
  | 
  |
VarHandle  | 
    |
  | 
  |
java.lang.module  | 
    |
ModuleDescriptor.Exports  | 
    |
ModuleDescriptor.Opens  | 
    |
ModuleDescriptor.Requires  | 
    |
  | 
  |
java.lang.reflect  | 
    |
Executable  | 
    |
  | 
  |
Field  | 
    |
  | 
  |
Parameter  | 
    |
  | 
  |
Member  | 
    |
java.lang.runtime  | 
    |
  | 
  |
  | 
  |
java.lang  | 
    |
Boolean  | 
    |
  | 
  |
  | 
  |
Byte  | 
    |
  | 
  |
  | 
  |
Character.UnicodeBlock  | 
    |
Character  | 
    |
  | 
  |
Class  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
Compiler  | 
    |
Double  | 
    |
  | 
  |
  | 
  |
Float  | 
    |
  | 
  |
  | 
  |
  | 
  |
Integer  | 
    |
  | 
  |
  | 
  |
Long  | 
    |
  | 
  |
  | 
  |
  | 
  |
Math  | 
    |
ModuleLayer.Controller  | 
    |
Module  | 
    |
  | 
  |
Process  | 
    |
  | 
  |
  | 
  |
SecurityManager  | 
    |
  | 
  |
Short  | 
    |
  | 
  |
  | 
  |
StrictMath  | 
    |
  | 
  |
  | 
  |
String  | 
    |
  | 
  |
ThreadGroup  | 
    |
allowThreadSuspension(boolean)  | 
    |
resume()  | 
    |
stop()  | 
    |
suspend()  | 
    |
Thread  | 
    |
countStackFrames()  | 
    |
  | 
  |
  | 
  |
  | 
  |
resume()  | 
    |
  | 
  |
stop()  | 
    |
suspend()  | 
    |
Character.UnicodeScript  | 
    |
StackWalker.Option  | 
    |
CharSequence  | 
    |
  | 
  |
allowSetThreadLocals(boolean)  | 
    |
  | 
  |
allowSetThreadLocals(boolean)  | 
    |
  | 
  |
allowSetThreadLocals(boolean)  | 
    |
java.math  | 
    |
BigInteger  | 
    |
java.net  | 
    |
DatagramSocketImpl  | 
    |
getTTL()  | 
    |
setTTL(byte)  | 
    |
HttpURLConnection  | 
    |
  | 
  |
Inet4Address  | 
    |
Inet6Address  | 
    |
InetAddress  | 
    |
  | 
  |
MulticastSocket  | 
    |
getTTL()  | 
    |
send(DatagramPacket, byte)  | 
    |
setTTL(byte)  | 
    |
  | 
  |
  | 
  |
Socket  | 
    |
  | 
  |
  | 
  |
URLConnection  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
URL  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
java.nio.channels  | 
    |
FileChannel  | 
    |
map(FileChannel.MapMode, long, long,...  | 
    |
java.nio.charset  | 
    |
  | 
  |
  | 
  |
StandardCharsets  | 
    |
java.nio.file.spi  | 
    |
FileSystemProvider  | 
    |
java.nio.file  | 
    |
  | 
  |
Path  | 
    |
java.nio  | 
    |
CharBuffer  | 
    |
  | 
  |
toString()  | 
    |
java.security.cert  | 
    |
  | 
  |
  | 
  |
java.security.interfaces  | 
    |
DSAKeyPairGenerator  | 
    |
  | 
  |
  | 
  |
  | 
  |
DSAPrivateKey  | 
    |
DSAPublicKey  | 
    |
ECPrivateKey  | 
    |
ECPublicKey  | 
    |
EdECPrivateKey  | 
    |
EdECPublicKey  | 
    |
RSAPrivateKey  | 
    |
RSAPublicKey  | 
    |
XECPrivateKey  | 
    |
XECPublicKey  | 
    |
java.security.spec  | 
    |
NamedParameterSpec  | 
    |
  | 
  |
  | 
  |
java.security  | 
    |
  | 
  |
InvalidParameterException  | 
    |
  | 
  |
SecureRandom  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
java.text  | 
    |
ChoiceFormat  | 
    |
CompactNumberFormat  | 
    |
DecimalFormat  | 
    |
MessageFormat  | 
    |
NumberFormat  | 
    |
SimpleDateFormat  | 
    |
java.time  | 
    |
Duration  | 
    |
Instant  | 
    |
java.util.concurrent.locks  | 
    |
  | 
  |
java.util.concurrent  | 
    |
ConcurrentSkipListMap  | 
    |
ConcurrentSkipListSet  | 
    |
CopyOnWriteArrayList  | 
    |
DelayQueue  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
ForkJoinTask  | 
    |
ForkJoinWorkerThread  | 
    |
  | 
  |
java.util.random  | 
    |
RandomGenerator  | 
    |
java.util.regex  | 
    |
Matcher  | 
    |
Pattern  | 
    |
MatchResult  | 
    |
java.util.stream  | 
    |
Stream  | 
    |
java.util.zip  | 
    |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
  | 
  |
ZipFile  | 
    |
ZipInputStream  | 
    |
java.util  | 
    |
ArrayList  | 
    |
  | 
  |
  | 
  |
  | 
  |
Currency  | 
    |
  | 
  |
IdentityHashMap  | 
    |
  | 
  |
  | 
  |
LinkedList  | 
    |
Locale  | 
    |
  | 
  |
TimeZone  | 
    |
TreeMap  | 
    |
TreeSet  | 
    |
  | 
  |
Comparator  | 
    |
  | 
  |
  | 
  |
NavigableMap  | 
    |
NavigableSet  | 
    |
  | 
  |
  | 
  |
javax.crypto.interfaces  | 
    |
DHPrivateKey  | 
    |
DHPublicKey  | 
    |
javax.crypto.spec  | 
    |
javax.crypto  | 
    |
  | 
  |
javax.net.ssl  | 
    |
ExtendedSSLSession  | 
    |
KeyManagerFactory  | 
    |
  | 
  |
SSLParameters  | 
    |
  | 
  |
TrustManagerFactory  | 
    |
  | 
  |
javax.security.auth  | 
    |
  | 
  |
  | 
  |
java.compiler  | 
    |
javax.lang.model.element  | 
    |
RecordComponentElement  | 
    |
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  | 
    |
SynthComboBoxUI  | 
    |
SynthLookAndFeel  | 
    |
load(URL)  | 
    |
SynthPasswordFieldUI  | 
    |
installKeyboardActions()  | 
    |
SynthTreeUI  | 
    |
javax.swing.text  | 
    |
DefaultEditorKit  | 
    |
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)  | 
    |
RMIIIOPServerImpl  | 
    |
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 19.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.