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

New APIs in Java 19

Comparing Java 19 (19-ea+5-210-open) with Java 17 (17.0.1+12-tem).

Element Modification
java.base
    java.io
      FileInputStream
        • added
        ObjectInputStream.GetField
          • + throws ClassNotFoundException
          PrintStream
            java.lang.invoke
              MethodHandle
                • + final
                java.lang.reflect
                  Method
                    • - throws IllegalArgumentException
                    java.lang
                      Character.UnicodeBlock
                        • added
                        • added
                        • added
                        • added
                        • added
                        • added
                        • added
                        • added
                        • added
                        • added
                        • added
                        • added
                        Enum
                          • + deprecated
                          • + forRemoval
                          Math
                            Object
                              • + forRemoval
                              Runtime
                                • + deprecated
                                • + deprecated
                                • + deprecated
                                • + deprecated
                                • + forRemoval
                                StrictMath
                                  System
                                    • + deprecated
                                    • + forRemoval
                                    Thread
                                      • + forRemoval
                                      Character.UnicodeScript
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        java.net.spi
                                          java.nio.charset
                                            Charset
                                              java.security
                                                KeyStoreSpi
                                                  • added
                                                  KeyStore
                                                    • added
                                                    java.time
                                                      Duration
                                                        java.util.concurrent
                                                          ThreadPoolExecutor
                                                            • + forRemoval
                                                            javax.security.auth
                                                              Subject
                                                                • + deprecated
                                                                • + forRemoval
                                                                • + deprecated
                                                                • + forRemoval
                                                                java.compiler
                                                                  javax.annotation.processing
                                                                    Messager
                                                                      javax.lang.model.element
                                                                        ExecutableElement
                                                                          • added
                                                                          javax.lang.model.util
                                                                            Elements
                                                                              javax.lang.model
                                                                                SourceVersion
                                                                                  javax.tools
                                                                                    ForwardingJavaFileManager
                                                                                      • added
                                                                                      • added
                                                                                      DocumentationTool.Location
                                                                                        JavaFileManager
                                                                                          • added
                                                                                          • added
                                                                                          java.desktop
                                                                                            java.awt.color
                                                                                              ICC_Profile
                                                                                                finalize()
                                                                                                java.awt.image
                                                                                                  ColorModel
                                                                                                    finalize()
                                                                                                    IndexColorModel
                                                                                                      finalize()
                                                                                                      java.awt
                                                                                                        Graphics
                                                                                                          • + forRemoval
                                                                                                          PrintJob
                                                                                                            • + forRemoval
                                                                                                            javax.imageio.spi
                                                                                                              ServiceRegistry
                                                                                                                • + forRemoval
                                                                                                                javax.imageio.stream
                                                                                                                  FileCacheImageInputStream
                                                                                                                    • + forRemoval
                                                                                                                    FileImageInputStream
                                                                                                                      • + forRemoval
                                                                                                                      FileImageOutputStream
                                                                                                                        • + forRemoval
                                                                                                                        ImageInputStreamImpl
                                                                                                                          • + forRemoval
                                                                                                                          MemoryCacheImageInputStream
                                                                                                                            • + forRemoval
                                                                                                                            java.management
                                                                                                                              java.lang.management
                                                                                                                                MemoryMXBean
                                                                                                                                  • + deprecated
                                                                                                                                  java.net.http
                                                                                                                                    java.net.http
                                                                                                                                      HttpRequest.Builder
                                                                                                                                        java.xml
                                                                                                                                          javax.xml.xpath
                                                                                                                                            XPathFactory
                                                                                                                                              • added
                                                                                                                                              • added

                                                                                                                                              This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 19-ea+5-210-open and 17.0.1+12-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.

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