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

New APIs in Java 28

Comparing Java 28 (28-ea+15-1083-open) with Java 25 (25.0.4.1+1-LTS-tem).

Element Modification
java.base
    java.lang.classfile.attribute
      StackMapFrameInfo
        java.lang.classfile.instruction
          IncrementInstruction
            java.lang.classfile
              Attributes
                ClassFile
                  Signature.ClassTypeSig
                    • + deprecated
                    • + forRemoval
                    java.lang.foreign
                      MemorySegment
                        SegmentAllocator
                          java.lang.reflect
                            Executable
                              • - abstract
                              Field
                                Modifier
                                  • + deprecated
                                  • + deprecated
                                  • + deprecated
                                  • + deprecated
                                  • + deprecated
                                  • + deprecated
                                  • + deprecated
                                  AccessFlag
                                    ClassFileFormatVersion
                                      java.lang
                                        Character.UnicodeBlock
                                          Class
                                            Math
                                              • + implements Closeable
                                              StrictMath
                                                String
                                                  Thread
                                                    stop()
                                                    Character.UnicodeScript
                                                      StableValue
                                                      java.math
                                                        BigDecimal
                                                          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.cert
                                                                            • - implements DEREncodable
                                                                            • + implements BinaryEncodable
                                                                            • - implements DEREncodable
                                                                            • + implements BinaryEncodable
                                                                            java.security.spec
                                                                              • - implements DEREncodable
                                                                              • + implements BinaryEncodable
                                                                              • - implements DEREncodable
                                                                              • + implements BinaryEncodable
                                                                              java.security
                                                                                • - implements DEREncodable
                                                                                • + implements BinaryEncodable
                                                                                KeyStoreSpi
                                                                                  KeyStore
                                                                                    • - preview
                                                                                    decode(InputStream)
                                                                                    decode(InputStream, Class)
                                                                                    decode(String)
                                                                                    decode(String, Class)
                                                                                    withFactory(Provider)
                                                                                    • - preview
                                                                                    encode(DEREncodable)
                                                                                    encodeToString(DEREncodable)
                                                                                    PEMRecord
                                                                                    SecureRandom
                                                                                      • - implements DEREncodable
                                                                                      • + implements BinaryEncodable
                                                                                      DEREncodable
                                                                                      java.time.format
                                                                                        java.time
                                                                                          Duration
                                                                                            Instant
                                                                                              java.util.concurrent
                                                                                                StructuredTaskScope.FailedException
                                                                                                StructuredTaskScope.TimeoutException
                                                                                                ThreadLocalRandom
                                                                                                  ThreadPoolExecutor
                                                                                                    finalize()
                                                                                                    StructuredTaskScope.Joiner
                                                                                                      anySuccessfulResultOrThrow()
                                                                                                      awaitAll()
                                                                                                      StructuredTaskScope
                                                                                                        • + throws Throwable
                                                                                                        open(StructuredTaskScope.Joiner, Function)
                                                                                                        java.util
                                                                                                          EnumSet
                                                                                                            Locale
                                                                                                              • - final
                                                                                                              • - final
                                                                                                              • - final
                                                                                                              • - final
                                                                                                              Objects
                                                                                                                PriorityQueue
                                                                                                                  UUID
                                                                                                                    • - abstract
                                                                                                                    • + final
                                                                                                                    Comparator
                                                                                                                      List
                                                                                                                        Map
                                                                                                                          Set
                                                                                                                            javax.crypto.spec
                                                                                                                              javax.crypto
                                                                                                                                • - implements DEREncodable
                                                                                                                                • + implements BinaryEncodable
                                                                                                                                encryptKey(PrivateKey, Key, String,...
                                                                                                                                encryptKey(PrivateKey, char[])
                                                                                                                                encryptKey(PrivateKey, char[], String,...
                                                                                                                                getKey(Key, Provider)
                                                                                                                                • - preview
                                                                                                                                • - throws GeneralSecurityException
                                                                                                                                • + throws InvalidKeyException
                                                                                                                                • + throws NoSuchAlgorithmException
                                                                                                                                java.compiler
                                                                                                                                  javax.lang.model.element
                                                                                                                                    Modifier
                                                                                                                                      javax.lang.model
                                                                                                                                        SourceVersion
                                                                                                                                          java.desktop
                                                                                                                                            java.applet
                                                                                                                                            java.awt.geom
                                                                                                                                              Arc2D
                                                                                                                                                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
                                                                                                                                                                          JEditorPane.JEditorPaneAccessibleHypertextSupport
                                                                                                                                                                            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 28-ea+15-1083-open and 25.0.4.1+1-LTS-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.