New APIs in Java 24
Comparing Java 24 (24-ea+24-2960-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 |
|
ClassSpecializer.Factory |
|
ClassSpecializer.SpeciesData |
|
MethodHandles |
|
|
|
|
|
|
|
|
|
|
|
memorySegmentViewVarHandle(ValueLayout) |
|
|
|
VarHandle |
|
|
|
java.lang.module |
|
ModuleDescriptor.Exports |
|
ModuleDescriptor.Opens |
|
ModuleDescriptor.Requires |
|
ModuleDescriptor |
|
java.lang.reflect |
|
Executable |
|
|
|
Field |
|
Parameter |
|
Member |
|
java.lang.runtime |
|
|
|
java.lang |
|
Character.UnicodeBlock |
|
Character |
|
Class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compiler |
|
FdLibm.Cbrt |
|
FdLibm.Hypot |
|
FdLibm.Pow |
|
Float |
|
|
|
Math |
|
ModuleLayer.Controller |
|
Module |
|
Process |
|
SecurityManager |
|
|
|
StrictMath |
|
|
|
|
|
String |
|
|
|
ThreadGroup |
|
allowThreadSuspension(boolean) |
|
resume() |
|
stop() |
|
suspend() |
|
Thread |
|
countStackFrames() |
|
|
|
|
|
|
|
resume() |
|
|
|
suspend() |
|
Character.UnicodeScript |
|
StackWalker.Option |
|
|
|
allowSetThreadLocals(boolean) |
|
|
|
allowSetThreadLocals(boolean) |
|
|
|
allowSetThreadLocals(boolean) |
|
java.net |
|
DatagramSocketImpl |
|
|
|
|
|
Inet4Address |
|
Inet6Address |
|
InetAddress |
|
MulticastSocket |
|
|
|
|
|
|
|
Socket |
|
|
|
|
|
URL |
|
|
|
|
|
|
|
|
|
|
|
|
|
java.nio.channels |
|
FileChannel |
|
map(FileChannel.MapMode, long, long,... |
|
java.nio.charset |
|
StandardCharsets |
|
java.nio.file.spi |
|
FileSystemProvider |
|
java.nio.file |
|
Path |
|
java.security.interfaces |
|
DSAKeyPairGenerator |
|
|
|
|
|
|
|
DSAPrivateKey |
|
DSAPublicKey |
|
ECPrivateKey |
|
ECPublicKey |
|
EdECPrivateKey |
|
EdECPublicKey |
|
RSAPrivateKey |
|
RSAPublicKey |
|
XECPrivateKey |
|
XECPublicKey |
|
java.security |
|
InvalidParameterException |
|
|
|
|
|
java.text |
|
ChoiceFormat |
|
CompactNumberFormat |
|
DecimalFormat |
|
MessageFormat |
|
NumberFormat |
|
SimpleDateFormat |
|
java.time |
|
Instant |
|
java.util.concurrent |
|
ConcurrentSkipListMap |
|
ConcurrentSkipListSet |
|
CopyOnWriteArrayList |
|
DelayQueue |
|
Executors |
|
|
|
|
|
ForkJoinPool |
|
|
|
ForkJoinTask |
|
ForkJoinWorkerThread |
|
java.util.random |
|
RandomGenerator |
|
java.util.regex |
|
Matcher |
|
Pattern |
|
MatchResult |
|
java.util.stream |
|
Stream |
|
java.util.zip |
|
Deflater |
|
|
|
|
|
Inflater |
|
|
|
|
|
|
|
ZipFile |
|
ZipInputStream |
|
java.util |
|
ArrayList |
|
|
|
Collections |
|
IdentityHashMap |
|
|
|
|
|
LinkedList |
|
Locale |
|
TreeMap |
|
TreeSet |
|
|
|
|
|
NavigableMap |
|
NavigableSet |
|
|
|
|
|
javax.crypto.interfaces |
|
DHPrivateKey |
|
DHPublicKey |
|
javax.crypto.spec |
|
javax.crypto |
|
javax.net.ssl |
|
KeyManagerFactory |
|
|
|
SSLParameters |
|
TrustManagerFactory |
|
|
|
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.awt.peer |
|
WindowPeer |
|
java.awt |
|
KeyboardFocusManager |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Window |
|
|
|
java.beans.beancontext |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
java.beans |
|
Beans |
|
|
|
|
|
|
|
javax.print.attribute.standard |
|
javax.swing.plaf.basic |
|
BasicSliderUI |
|
|
|
BasicSplitPaneDivider |
|
javax.swing.plaf.synth |
|
SynthComboBoxUI |
|
SynthLookAndFeel |
|
|
|
SynthPasswordFieldUI |
|
SynthTreeUI |
|
javax.swing.text.html |
|
AccessibleHTML.HTMLAccessibleContext |
|
javax.swing.text |
|
DefaultEditorKit |
|
javax.swing |
|
FocusManager |
|
|
|
JFileChooser |
|
JScrollBar |
|
JSplitPane |
|
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 |
|
javax.management.loading |
|
MLetContent |
|
MLet |
|
PrivateMLet |
|
MLetMBean |
|
javax.management.remote |
|
JMXConnector |
|
|
|
java.net.http |
|
java.net.http |
|
|
|
java.rmi |
|
java.rmi.server |
|
RMIClassLoader |
|
|
|
java.xml.crypto |
|
javax.xml.crypto.dsig |
|
SignatureMethod |
|
java.xml |
|
javax.xml.catalog |
|
CatalogManager |
|
GroupEntry.ResolveType |
This report is based on simple comparison of all public
and
protected
APIs of the java.*
and javax.*
packages of JDK builds 24-ea+24-2960-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.