GitHub
The Java Version Almanac
javaalmanac.io
Feedback on this page?

New APIs in Java 24

Comparing Java 24 (24-ea+24-2960-open) with Java 23 (23.0.1+11-tem).

Element Modification
java.base
    java.io
      ObjectInputStream
        • - throws SecurityException
        • - throws SecurityException
        ObjectOutputStream
          • - throws SecurityException
          • - throws SecurityException
          Reader
            java.lang.classfile.attribute
              StackMapFrameInfo.SimpleVerificationTypeInfo
                ITEM_DOUBLE
                ITEM_FLOAT
                ITEM_INTEGER
                ITEM_LONG
                ITEM_NULL
                ITEM_TOP
                ITEM_UNINITIALIZED_THIS
                CodeAttribute
                  ModuleAttribute.ModuleAttributeBuilder
                    build()
                    StackMapFrameInfo.VerificationTypeInfo
                      java.lang.classfile.components
                        CodeRelabeler
                          relabel(Label, CodeBuilder)
                          java.lang.classfile.constantpool
                            • - implements WritableElement
                            annotationConstantValueEntry(ConstantDesc)
                            writeBootstrapMethods(BufWriter)
                            • - implements WritableElement
                            java.lang.classfile.instruction
                              CharacterRange
                                LocalVariableType
                                  writeTo(BufWriter)
                                  LocalVariable
                                    writeTo(BufWriter)
                                    java.lang.classfile
                                      CustomAttribute
                                        writeTo(BufWriter)
                                        ClassFile.AttributesProcessingOption
                                          DROP_UNSTABLE_ATRIBUTES
                                          Opcode
                                            constantValue()
                                            isUnconditionalBranch()
                                            primaryTypeKind()
                                            secondaryTypeKind()
                                            slot()
                                            TypeKind
                                              BooleanType
                                              ByteType
                                              CharType
                                              DoubleType
                                              FloatType
                                              IntType
                                              LongType
                                              ReferenceType
                                              ShortType
                                              VoidType
                                              descriptor()
                                              typeName()
                                              AccessFlags
                                                ofClass(AccessFlag...)
                                                ofClass(int)
                                                ofField(AccessFlag...)
                                                ofField(int)
                                                ofMethod(AccessFlag...)
                                                ofMethod(int)
                                                • - implements WritableElement
                                                AnnotationValue.OfBoolean
                                                  AnnotationValue.OfByte
                                                    AnnotationValue.OfCharacter
                                                    AnnotationValue.OfConstant
                                                      constantValue()
                                                      AnnotationValue.OfDouble
                                                        AnnotationValue.OfFloat
                                                          AnnotationValue.OfInteger
                                                          AnnotationValue.OfLong
                                                            AnnotationValue.OfShort
                                                              AnnotationValue.OfString
                                                                • - implements WritableElement
                                                                ofBoolean(IntegerEntry)
                                                                ofBoolean(boolean)
                                                                ofByte(IntegerEntry)
                                                                ofByte(byte)
                                                                ofChar(IntegerEntry)
                                                                ofChar(char)
                                                                ofDouble(DoubleEntry)
                                                                ofDouble(double)
                                                                ofFloat(FloatEntry)
                                                                ofFloat(float)
                                                                ofInt(IntegerEntry)
                                                                ofInt(int)
                                                                ofLong(LongEntry)
                                                                ofLong(long)
                                                                ofShort(IntegerEntry)
                                                                ofShort(short)
                                                                ofString(String)
                                                                ofString(Utf8Entry)
                                                                • - implements WritableElement
                                                                AttributeMapper
                                                                  readAttribute(AttributedElement, ClassReader, int)
                                                                  writeAttribute(BufWriter, Object)
                                                                  • - implements WritableElement
                                                                  • + implements ClassFileElement
                                                                  • - implements WritableElement
                                                                  BufWriter
                                                                    copyTo(byte[], int)
                                                                    writeBytes(BufWriter)
                                                                    writeList(List)
                                                                    writeListIndices(List)
                                                                    ClassBuilder
                                                                      original()
                                                                      ClassFileBuilder
                                                                        canWriteDirect(ConstantPool)
                                                                        transform(CompoundElement, ClassFileTransform)
                                                                        ClassFileTransform.ResolvedTransform
                                                                        ClassFileTransform
                                                                          resolve(ClassFileBuilder)
                                                                          ClassFile
                                                                            AALOAD
                                                                            AASTORE
                                                                            ACONST_NULL
                                                                            AEV_ANNOTATION
                                                                            AEV_ARRAY
                                                                            AEV_BOOLEAN
                                                                            AEV_BYTE
                                                                            AEV_CHAR
                                                                            AEV_CLASS
                                                                            AEV_DOUBLE
                                                                            AEV_ENUM
                                                                            AEV_FLOAT
                                                                            AEV_INT
                                                                            AEV_LONG
                                                                            AEV_SHORT
                                                                            AEV_STRING
                                                                            ALOAD
                                                                            ALOAD_0
                                                                            ALOAD_1
                                                                            ALOAD_2
                                                                            ALOAD_3
                                                                            ANEWARRAY
                                                                            ARETURN
                                                                            ARRAYLENGTH
                                                                            ASTORE
                                                                            ASTORE_0
                                                                            ASTORE_1
                                                                            ASTORE_2
                                                                            ASTORE_3
                                                                            ATHROW
                                                                            BALOAD
                                                                            BASTORE
                                                                            BIPUSH
                                                                            CALOAD
                                                                            CASTORE
                                                                            CHECKCAST
                                                                            CRT_ASSIGNMENT
                                                                            CRT_BLOCK
                                                                            CRT_BRANCH_FALSE
                                                                            CRT_BRANCH_TRUE
                                                                            CRT_CREATE
                                                                            CRT_FLOW_CONTROLLER
                                                                            CRT_FLOW_TARGET
                                                                            CRT_INVOKE
                                                                            CRT_STATEMENT
                                                                            D2F
                                                                            D2I
                                                                            D2L
                                                                            DADD
                                                                            DALOAD
                                                                            DASTORE
                                                                            DCMPG
                                                                            DCMPL
                                                                            DCONST_0
                                                                            DCONST_1
                                                                            DDIV
                                                                            DEFAULT_CLASS_FLAGS
                                                                            DLOAD
                                                                            DLOAD_0
                                                                            DLOAD_1
                                                                            DLOAD_2
                                                                            DLOAD_3
                                                                            DMUL
                                                                            DNEG
                                                                            DREM
                                                                            DRETURN
                                                                            DSTORE
                                                                            DSTORE_0
                                                                            DSTORE_1
                                                                            DSTORE_2
                                                                            DSTORE_3
                                                                            DSUB
                                                                            DUP2
                                                                            DUP2_X1
                                                                            DUP2_X2
                                                                            DUP
                                                                            DUP_X1
                                                                            DUP_X2
                                                                            F2D
                                                                            F2I
                                                                            F2L
                                                                            FADD
                                                                            FALOAD
                                                                            FASTORE
                                                                            FCMPG
                                                                            FCMPL
                                                                            FCONST_0
                                                                            FCONST_1
                                                                            FCONST_2
                                                                            FDIV
                                                                            FLOAD
                                                                            FLOAD_0
                                                                            FLOAD_1
                                                                            FLOAD_2
                                                                            FLOAD_3
                                                                            FMUL
                                                                            FNEG
                                                                            FREM
                                                                            FRETURN
                                                                            FSTORE
                                                                            FSTORE_0
                                                                            FSTORE_1
                                                                            FSTORE_2
                                                                            FSTORE_3
                                                                            FSUB
                                                                            GETFIELD
                                                                            GETSTATIC
                                                                            GOTO
                                                                            GOTO_W
                                                                            I2B
                                                                            I2C
                                                                            I2D
                                                                            I2F
                                                                            I2L
                                                                            I2S
                                                                            IADD
                                                                            IALOAD
                                                                            IAND
                                                                            IASTORE
                                                                            ICONST_0
                                                                            ICONST_1
                                                                            ICONST_2
                                                                            ICONST_3
                                                                            ICONST_4
                                                                            ICONST_5
                                                                            ICONST_M1
                                                                            IDIV
                                                                            IFEQ
                                                                            IFGE
                                                                            IFGT
                                                                            IFLE
                                                                            IFLT
                                                                            IFNE
                                                                            IFNONNULL
                                                                            IFNULL
                                                                            IF_ACMPEQ
                                                                            IF_ACMPNE
                                                                            IF_ICMPEQ
                                                                            IF_ICMPGE
                                                                            IF_ICMPGT
                                                                            IF_ICMPLE
                                                                            IF_ICMPLT
                                                                            IF_ICMPNE
                                                                            IINC
                                                                            ILOAD
                                                                            ILOAD_0
                                                                            ILOAD_1
                                                                            ILOAD_2
                                                                            ILOAD_3
                                                                            IMUL
                                                                            INEG
                                                                            INSTANCEOF
                                                                            INVOKEDYNAMIC
                                                                            INVOKEINTERFACE
                                                                            INVOKESPECIAL
                                                                            INVOKESTATIC
                                                                            INVOKEVIRTUAL
                                                                            IOR
                                                                            IREM
                                                                            IRETURN
                                                                            ISHL
                                                                            ISHR
                                                                            ISTORE
                                                                            ISTORE_0
                                                                            ISTORE_1
                                                                            ISTORE_2
                                                                            ISTORE_3
                                                                            ISUB
                                                                            IUSHR
                                                                            IXOR
                                                                            JSR
                                                                            JSR_W
                                                                            L2D
                                                                            L2F
                                                                            L2I
                                                                            LADD
                                                                            LALOAD
                                                                            LAND
                                                                            LASTORE
                                                                            LCMP
                                                                            LCONST_0
                                                                            LCONST_1
                                                                            LDC2_W
                                                                            LDC
                                                                            LDC_W
                                                                            LDIV
                                                                            LLOAD
                                                                            LLOAD_0
                                                                            LLOAD_1
                                                                            LLOAD_2
                                                                            LLOAD_3
                                                                            LMUL
                                                                            LNEG
                                                                            LOOKUPSWITCH
                                                                            LOR
                                                                            LREM
                                                                            LRETURN
                                                                            LSHL
                                                                            LSHR
                                                                            LSTORE
                                                                            LSTORE_0
                                                                            LSTORE_1
                                                                            LSTORE_2
                                                                            LSTORE_3
                                                                            LSUB
                                                                            LUSHR
                                                                            LXOR
                                                                            MONITORENTER
                                                                            MONITOREXIT
                                                                            MULTIANEWARRAY
                                                                            NEWARRAY
                                                                            NEW
                                                                            NOP
                                                                            POP2
                                                                            POP
                                                                            PUTFIELD
                                                                            PUTSTATIC
                                                                            RETURN
                                                                            RET
                                                                            SALOAD
                                                                            SASTORE
                                                                            SIPUSH
                                                                            SWAP
                                                                            TABLESWITCH
                                                                            TAG_CLASS
                                                                            TAG_CONSTANTDYNAMIC
                                                                            TAG_DOUBLE
                                                                            TAG_FIELDREF
                                                                            TAG_FLOAT
                                                                            TAG_INTEGER
                                                                            TAG_INTERFACEMETHODREF
                                                                            TAG_INVOKEDYNAMIC
                                                                            TAG_LONG
                                                                            TAG_METHODHANDLE
                                                                            TAG_METHODREF
                                                                            TAG_METHODTYPE
                                                                            TAG_MODULE
                                                                            TAG_NAMEANDTYPE
                                                                            TAG_PACKAGE
                                                                            TAG_STRING
                                                                            TAG_UNICODE
                                                                            TAG_UTF8
                                                                            TAT_CAST
                                                                            TAT_CLASS_EXTENDS
                                                                            TAT_CLASS_TYPE_PARAMETER
                                                                            TAT_CLASS_TYPE_PARAMETER_BOUND
                                                                            TAT_CONSTRUCTOR_INVOCATION_TYPE_ARGUMENT
                                                                            TAT_CONSTRUCTOR_REFERENCE
                                                                            TAT_CONSTRUCTOR_REFERENCE_TYPE_ARGUMENT
                                                                            TAT_EXCEPTION_PARAMETER
                                                                            TAT_FIELD
                                                                            TAT_INSTANCEOF
                                                                            TAT_LOCAL_VARIABLE
                                                                            TAT_METHOD_FORMAL_PARAMETER
                                                                            TAT_METHOD_INVOCATION_TYPE_ARGUMENT
                                                                            TAT_METHOD_RECEIVER
                                                                            TAT_METHOD_REFERENCE
                                                                            TAT_METHOD_REFERENCE_TYPE_ARGUMENT
                                                                            TAT_METHOD_RETURN
                                                                            TAT_METHOD_TYPE_PARAMETER
                                                                            TAT_METHOD_TYPE_PARAMETER_BOUND
                                                                            TAT_NEW
                                                                            TAT_RESOURCE_VARIABLE
                                                                            TAT_THROWS
                                                                            VT_DOUBLE
                                                                            VT_FLOAT
                                                                            VT_INTEGER
                                                                            VT_LONG
                                                                            VT_NULL
                                                                            VT_OBJECT
                                                                            VT_TOP
                                                                            VT_UNINITIALIZED
                                                                            VT_UNINITIALIZED_THIS
                                                                            WIDE
                                                                            transform(ClassModel, ClassDesc, ClassTransform)
                                                                            transform(ClassModel, ClassEntry, ClassTransform)
                                                                            transform(ClassModel, ClassTransform)
                                                                            ClassReader
                                                                              compare(BufWriter, int, int, int)
                                                                              readClassEntry(int)
                                                                              readMethodHandleEntry(int)
                                                                              readModuleEntry(int)
                                                                              readNameAndTypeEntry(int)
                                                                              readPackageEntry(int)
                                                                              readUtf8Entry(int)
                                                                              readUtf8EntryOrNull(int)
                                                                              ClassTransform
                                                                                resolve(ClassBuilder)
                                                                                CodeBuilder
                                                                                  if_nonnull(Label)
                                                                                  if_null(Label)
                                                                                  loadConstant(Opcode, ConstantDesc)
                                                                                  original()
                                                                                  CodeModel
                                                                                    maxLocals()
                                                                                    maxStack()
                                                                                    CodeTransform
                                                                                      resolve(CodeBuilder)
                                                                                      CompoundElement
                                                                                        elements()
                                                                                        forEachElement(Consumer)
                                                                                        FieldBuilder
                                                                                          original()
                                                                                          • - implements WritableElement
                                                                                          FieldTransform
                                                                                            resolve(FieldBuilder)
                                                                                            MethodBuilder
                                                                                              original()
                                                                                              • - implements WritableElement
                                                                                              MethodTransform
                                                                                                resolve(MethodBuilder)
                                                                                                TypeAnnotation.TargetInfo
                                                                                                  • - implements Annotation
                                                                                                  of(TypeAnnotation.TargetInfo, List, ClassDesc,...
                                                                                                  of(TypeAnnotation.TargetInfo, List, ClassDesc,...
                                                                                                  of(TypeAnnotation.TargetInfo, List, Utf8Entry,...
                                                                                                  of(TypeAnnotation.TargetInfo, List, Utf8Entry,...
                                                                                                  WritableElement
                                                                                                  java.lang.constant
                                                                                                    ClassDesc
                                                                                                      • + abstract
                                                                                                      • + abstract
                                                                                                      • + abstract
                                                                                                      java.lang.reflect
                                                                                                        ClassFileFormatVersion
                                                                                                          java.lang
                                                                                                            Class
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              • - throws SecurityException
                                                                                                              Process
                                                                                                                ScopedValue
                                                                                                                  callWhere(ScopedValue, Object,...
                                                                                                                  runWhere(ScopedValue, Object, Runnable)
                                                                                                                  SecurityManager
                                                                                                                    • - deprecated
                                                                                                                    • - forRemoval
                                                                                                                    java.util.stream
                                                                                                                      • - preview
                                                                                                                      • - preview
                                                                                                                      • - preview
                                                                                                                      • - preview
                                                                                                                      • - preview
                                                                                                                      Stream
                                                                                                                        • - preview
                                                                                                                        java.util.zip
                                                                                                                          • + deprecated
                                                                                                                          • + forRemoval
                                                                                                                          javax.crypto.spec
                                                                                                                            javax.crypto
                                                                                                                              java.compiler
                                                                                                                                javax.lang.model
                                                                                                                                  SourceVersion
                                                                                                                                    java.desktop
                                                                                                                                      java.awt
                                                                                                                                        KeyboardFocusManager
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          • - throws SecurityException
                                                                                                                                          Window
                                                                                                                                            • - throws SecurityException
                                                                                                                                            java.beans
                                                                                                                                              Beans
                                                                                                                                                • - throws SecurityException
                                                                                                                                                • - throws SecurityException
                                                                                                                                                javax.swing.plaf.basic
                                                                                                                                                  BasicSplitPaneDivider
                                                                                                                                                    javax.swing
                                                                                                                                                      FocusManager
                                                                                                                                                        • - throws SecurityException
                                                                                                                                                        JSplitPane
                                                                                                                                                          UIManager
                                                                                                                                                            • - throws SecurityException
                                                                                                                                                            java.logging
                                                                                                                                                              java.util.logging
                                                                                                                                                                FileHandler
                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                  • - throws SecurityException
                                                                                                                                                                  Handler
                                                                                                                                                                    • - throws SecurityException
                                                                                                                                                                    • - throws SecurityException
                                                                                                                                                                    • - throws SecurityException
                                                                                                                                                                    • - throws SecurityException
                                                                                                                                                                    • - throws SecurityException
                                                                                                                                                                    LogManager
                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                      • - throws SecurityException
                                                                                                                                                                      Logger
                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                        • - throws SecurityException
                                                                                                                                                                        MemoryHandler
                                                                                                                                                                          • - throws SecurityException
                                                                                                                                                                          • - throws SecurityException
                                                                                                                                                                          SocketHandler
                                                                                                                                                                            • - throws SecurityException
                                                                                                                                                                            StreamHandler
                                                                                                                                                                              • - throws SecurityException
                                                                                                                                                                              • - throws SecurityException
                                                                                                                                                                              • - throws SecurityException
                                                                                                                                                                              java.rmi
                                                                                                                                                                                java.rmi.server
                                                                                                                                                                                  RMIClassLoader
                                                                                                                                                                                    • - throws SecurityException

                                                                                                                                                                                    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 23.0.1+11-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.