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

New APIs in Java 28

Comparing Java 28 (28-ea+21-1707-open) with Java 26 (26.0.2.1+1-tem).

Element Modification
java.base
    java.lang.classfile.attribute
      StackMapFrameInfo
        java.lang.classfile.instruction
          IncrementInstruction
            java.lang.classfile
              Attributes
                ClassFile
                  java.lang.constant
                    • + implements ConstantDescs.CallSiteBootstrapMethodHook
                    bootstrapMethod()
                    java.lang.foreign
                      MemorySegment
                        SegmentAllocator
                          java.lang.invoke
                            MethodHandles
                              java.lang.reflect
                                Executable
                                  • - abstract
                                  Field
                                    Modifier
                                      • + deprecated
                                      • + deprecated
                                      • + deprecated
                                      • + deprecated
                                      • + deprecated
                                      • + deprecated
                                      • + deprecated
                                      AccessFlag
                                        ClassFileFormatVersion
                                          java.lang
                                            Class
                                              Math
                                                StrictMath
                                                  String
                                                    LazyConstant
                                                      isInitialized()
                                                      orElse(Object)
                                                      java.math
                                                        BigDecimal
                                                          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)
                                                                    • - extends Record
                                                                    • - implements DEREncodable
                                                                    • - preview
                                                                    • + extends Object
                                                                    • + implements BinaryEncodable
                                                                    content()
                                                                    • - final
                                                                    equals(Object)
                                                                    hashCode()
                                                                    • - final
                                                                    • - implements DEREncodable
                                                                    • + implements BinaryEncodable
                                                                    DEREncodable
                                                                    java.time.format
                                                                      java.util.concurrent
                                                                        • - preview
                                                                        StructuredTaskScope.FailedException
                                                                        StructuredTaskScope.TimeoutException
                                                                        ThreadPoolExecutor
                                                                          finalize()
                                                                          • - preview
                                                                          • - preview
                                                                          • - preview
                                                                          awaitAll()
                                                                          onTimeout()
                                                                          • - preview
                                                                          • - preview
                                                                          • + throws Throwable
                                                                          java.util
                                                                            EnumSet
                                                                              Locale
                                                                                • - final
                                                                                • - final
                                                                                • - final
                                                                                • - final
                                                                                Objects
                                                                                  PriorityQueue
                                                                                    Set
                                                                                      javax.crypto
                                                                                        • - implements DEREncodable
                                                                                        • + implements BinaryEncodable
                                                                                        encrypt(DEREncodable, Key, String,...
                                                                                        encrypt(DEREncodable, char[])
                                                                                        encrypt(DEREncodable, char[], String,...
                                                                                        getKey(Key, Provider)
                                                                                        • - preview
                                                                                        getKeyPair(Key, Provider)
                                                                                        • - preview
                                                                                        javax.net.ssl
                                                                                          ExtendedSSLSession
                                                                                            SSLEngine
                                                                                              SSLServerSocket
                                                                                                SSLSocket
                                                                                                  java.compiler
                                                                                                    javax.lang.model.element
                                                                                                      Modifier
                                                                                                        javax.lang.model
                                                                                                          SourceVersion
                                                                                                            java.desktop
                                                                                                              java.awt.geom
                                                                                                                Arc2D
                                                                                                                  javax.swing
                                                                                                                    JEditorPane.JEditorPaneAccessibleHypertextSupport
                                                                                                                      java.management
                                                                                                                        javax.management.openmbean
                                                                                                                          OpenType
                                                                                                                            • + forRemoval

                                                                                                                            This report is based on simple comparison of all public and protected APIs of the Java SE packages of JDK builds 28-ea+21-1707-open and 26.0.2.1+1-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.