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

New APIs in Java 22

Comparing Java 22 (22-ea+16-1247-open) with Java 21 (21+35-2513-open).

Element Modification
java.base
    java.io
      Console
        java.lang.reflect
          ClassFileFormatVersion
            java.lang
              Character.UnicodeBlock
                • added
                Class
                  Thread
                    countStackFrames()
                    StackWalker.Option
                      java.nio.charset
                        StandardCharsets
                          java.nio.file
                            Path
                              java.text
                                java.util.random
                                  RandomGenerator
                                    java.compiler
                                      javax.lang.model.element
                                        RecordComponentElement
                                          javax.lang.model.util
                                            ElementScanner6
                                              Elements
                                                javax.lang.model
                                                  SourceVersion
                                                    java.desktop
                                                      java.awt.peer
                                                        WindowPeer

                                                          This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 22-ea+16-1247-open and 21+35-2513-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.

                                                          More detailed API comparisons based on the japicmp tool can be found here.