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

New APIs in Java 27

Comparing Java 27 (27-ea+21-1925-open) with Java 26 (26.0.1+8-tem).

Element Modification
java.base
    java.lang.classfile.instruction
      IncrementInstruction
        java.lang.classfile
          ClassFile
            java.lang.foreign
              MemorySegment
                SegmentAllocator
                  java.lang.reflect
                    Executable
                      • - abstract
                      Modifier
                        • + deprecated
                        • + deprecated
                        • + deprecated
                        • + deprecated
                        • + deprecated
                        • + deprecated
                        • + deprecated
                        ClassFileFormatVersion
                          java.lang
                            Math
                              StrictMath
                                String
                                  java.security
                                    KeyStoreSpi
                                      KeyStore
                                        java.time.format
                                          • added
                                          java.util.concurrent
                                            • added preview
                                            StructuredTaskScope.FailedException
                                            • removed preview
                                            StructuredTaskScope.TimeoutException
                                            • removed preview
                                            ThreadPoolExecutor
                                              finalize()
                                              StructuredTaskScope.Joiner
                                                • added preview
                                                • added preview
                                                awaitAll()
                                                • removed preview
                                                • added preview
                                                onTimeout()
                                                • removed preview
                                                • added preview
                                                StructuredTaskScope
                                                  • + throws Throwable
                                                  • added preview
                                                  java.util
                                                    EnumSet
                                                      Locale
                                                        • - final
                                                        • - final
                                                        • - final
                                                        • - final
                                                        java.compiler
                                                          javax.lang.model
                                                            SourceVersion
                                                              java.desktop
                                                                java.awt.geom
                                                                  Arc2D

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