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

New APIs in Java 26

Comparing Java 26 (26-ea+25-2529-open) with Java 25 (25.0.1+8-27-open).

Element Modification
java.base
    java.lang.classfile
      ClassFile
        Signature.ClassTypeSig
          • + deprecated
          • + forRemoval
          java.lang.reflect
            ClassFileFormatVersion
              java.lang
                Character.UnicodeBlock
                  • added
                  • added
                  • added
                  • added
                  • added
                  • added
                  • added
                  • added
                  • + implements Closeable
                  Thread
                    stop()
                    Character.UnicodeScript
                      • added
                      • added
                      • added
                      • added
                      • added preview
                      StableValue
                      • removed preview
                      java.math
                        BigInteger
                          java.net
                            DatagramSocketImpl
                              getTTL()
                              setTTL(byte)
                              MulticastSocket
                                getTTL()
                                send(DatagramPacket, byte)
                                setTTL(byte)
                                ServerSocket
                                  • + deprecated
                                  • + forRemoval
                                  SocketImpl
                                    • + deprecated
                                    • + forRemoval
                                    • + deprecated
                                    • + forRemoval
                                    Socket
                                      • + deprecated
                                      • + forRemoval
                                      java.nio
                                        • - extends Object
                                        • + extends Enum
                                        toString()
                                        java.security
                                          PEMRecord
                                          • removed preview
                                          • added preview
                                          SecureRandom
                                            java.time
                                              Duration
                                                Instant
                                                  java.util.concurrent
                                                    StructuredTaskScope.Joiner
                                                      • added preview
                                                      anySuccessfulResultOrThrow()
                                                      • removed preview
                                                      • added preview
                                                      StructuredTaskScope
                                                        open(StructuredTaskScope.Joiner, Function)
                                                        • removed preview
                                                        • added preview
                                                        java.util
                                                          UUID
                                                            • - abstract
                                                            • + final
                                                            Comparator
                                                              List
                                                                • added preview
                                                                Map
                                                                  • added preview
                                                                  javax.crypto
                                                                    EncryptedPrivateKeyInfo
                                                                      • added preview
                                                                      • added preview
                                                                      • added preview
                                                                      encryptKey(PrivateKey, Key, String,...
                                                                      • removed preview
                                                                      encryptKey(PrivateKey, char[])
                                                                      • removed preview
                                                                      encryptKey(PrivateKey, char[], String,...
                                                                      • removed preview
                                                                      • - throws GeneralSecurityException
                                                                      • + throws InvalidKeyException
                                                                      • + throws NoSuchAlgorithmException
                                                                      • - throws GeneralSecurityException
                                                                      • + throws InvalidKeyException
                                                                      • + throws NoSuchAlgorithmException
                                                                      • added preview
                                                                      • added preview
                                                                      java.compiler
                                                                        javax.lang.model
                                                                          SourceVersion
                                                                            java.desktop
                                                                              java.applet
                                                                              java.awt
                                                                                Robot
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  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.swing.plaf.synth
                                                                                                        SynthPasswordFieldUI
                                                                                                          installKeyboardActions()
                                                                                                          javax.swing
                                                                                                            JApplet.AccessibleJApplet
                                                                                                            JApplet
                                                                                                            RepaintManager
                                                                                                              addDirtyRegion(Applet, int, int, int, int)
                                                                                                              java.management
                                                                                                                java.lang.management
                                                                                                                  MemoryMXBean
                                                                                                                    • added
                                                                                                                    javax.management.modelmbean
                                                                                                                      DescriptorSupport
                                                                                                                        DescriptorSupport(String)
                                                                                                                        toXMLString()
                                                                                                                        XMLParseException
                                                                                                                        java.net.http
                                                                                                                          java.net.http
                                                                                                                            HttpRequest.BodyPublishers
                                                                                                                              HttpRequest
                                                                                                                                HttpClient.Version
                                                                                                                                  HttpRequest.Builder
                                                                                                                                    HttpResponse.PushPromiseHandler

                                                                                                                                      This report is based on simple comparison of all public and protected APIs of the Java SE packages of JDK builds 26-ea+25-2529-open and 25.0.1+8-27-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.