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

New APIs in Java 27

Comparing Java 27 (27-ea+10-857-open) with Java 25 (25.0.2+10-69-open).

Element Modification
java.base
    java.lang.classfile.instruction
      IncrementInstruction
        java.lang.classfile
          ClassFile
            Signature.ClassTypeSig
              • + deprecated
              • + forRemoval
              java.lang.foreign
                MemorySegment
                  SegmentAllocator
                    java.lang.reflect
                      ClassFileFormatVersion
                        java.lang
                          Character.UnicodeBlock
                            Math
                              • added
                              • + implements Closeable
                              StrictMath
                                • added
                                String
                                  Thread
                                    stop()
                                    Character.UnicodeScript
                                      StableValue
                                      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
                                                          KeyStoreSpi
                                                            KeyStore
                                                              PEMRecord
                                                              SecureRandom
                                                                java.time
                                                                  Duration
                                                                    Instant
                                                                      java.util.concurrent
                                                                        ThreadLocalRandom
                                                                          ThreadPoolExecutor
                                                                            finalize()
                                                                            StructuredTaskScope.Joiner
                                                                              anySuccessfulResultOrThrow()
                                                                              StructuredTaskScope
                                                                                open(StructuredTaskScope.Joiner, Function)
                                                                                java.util
                                                                                  EnumSet
                                                                                    UUID
                                                                                      • - abstract
                                                                                      • + final
                                                                                      Comparator
                                                                                        List
                                                                                          Map
                                                                                            javax.crypto.spec
                                                                                              javax.crypto
                                                                                                EncryptedPrivateKeyInfo
                                                                                                  encryptKey(PrivateKey, Key, String,...
                                                                                                  encryptKey(PrivateKey, char[])
                                                                                                  encryptKey(PrivateKey, char[], String,...
                                                                                                  • - throws GeneralSecurityException
                                                                                                  • + throws InvalidKeyException
                                                                                                  • + throws NoSuchAlgorithmException
                                                                                                  • - throws GeneralSecurityException
                                                                                                  • + throws InvalidKeyException
                                                                                                  • + throws NoSuchAlgorithmException
                                                                                                  java.compiler
                                                                                                    javax.lang.model
                                                                                                      SourceVersion
                                                                                                        java.desktop
                                                                                                          java.applet
                                                                                                          java.awt.geom
                                                                                                            Arc2D
                                                                                                              • added
                                                                                                              java.awt
                                                                                                                Robot
                                                                                                                  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
                                                                                                                                        JApplet.AccessibleJApplet
                                                                                                                                        JApplet
                                                                                                                                        RepaintManager
                                                                                                                                          addDirtyRegion(Applet, int, int, int, int)
                                                                                                                                          java.management
                                                                                                                                            java.lang.management
                                                                                                                                              MemoryMXBean
                                                                                                                                                javax.management.modelmbean
                                                                                                                                                  DescriptorSupport
                                                                                                                                                    DescriptorSupport(String)
                                                                                                                                                    toXMLString()
                                                                                                                                                    XMLParseException
                                                                                                                                                    java.net.http
                                                                                                                                                      java.net.http
                                                                                                                                                        HttpRequest.BodyPublishers
                                                                                                                                                          HttpRequest
                                                                                                                                                            HttpClient.Version
                                                                                                                                                              HttpRequest.Builder
                                                                                                                                                                HttpResponse.PushPromiseHandler
                                                                                                                                                                  java.sql
                                                                                                                                                                    java.sql
                                                                                                                                                                      • + deprecated
                                                                                                                                                                      • + forRemoval
                                                                                                                                                                      Types
                                                                                                                                                                        JDBCType
                                                                                                                                                                          • + implements AutoCloseable
                                                                                                                                                                          • + implements AutoCloseable
                                                                                                                                                                          • + implements AutoCloseable
                                                                                                                                                                          Connection
                                                                                                                                                                            • + implements AutoCloseable

                                                                                                                                                                            This report is based on simple comparison of all public and protected APIs of the Java SE packages of JDK builds 27-ea+10-857-open and 25.0.2+10-69-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.