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

New APIs in Java 12

Comparing Java 12 (12.0.2+10-adpt) with Java 10 (10.0.2-open).

Element Modification
java.activation
java.base
    java.io
      ByteArrayInputStream
        ByteArrayOutputStream
          FileInputStream
            finalize()
            FileOutputStream
              finalize()
              FileReader
                FileWriter
                  InputStream
                    OutputStream
                      Reader
                        Writer
                          java.lang.invoke
                            • + implements Constable
                            • + implements Constable
                            • + implements TypeDescriptor.OfMethod
                            • + implements Constable
                            java.lang.ref
                              Reference
                                java.lang.reflect
                                  UndeclaredThrowableException
                                    getCause()
                                    • removed
                                    java.lang
                                      Character.UnicodeBlock
                                        Character
                                          ClassNotFoundException
                                            getCause()
                                            • removed
                                            • + implements Constable
                                            • + implements TypeDescriptor.OfField
                                            • + implements Constable
                                            • + implements ConstantDesc
                                            • + implements Constable
                                            ExceptionInInitializerError
                                              getCause()
                                              • removed
                                              • + implements Constable
                                              • + implements ConstantDesc
                                              • + implements Constable
                                              • + implements ConstantDesc
                                              • + implements Constable
                                              • + implements ConstantDesc
                                              Runtime
                                                runFinalizersOnExit(boolean)
                                                SecurityManager
                                                  checkAwtEventQueueAccess()
                                                  checkMemberAccess(Class, int)
                                                  checkSystemClipboardAccess()
                                                  checkTopLevelWindow(Object)
                                                  • + implements Comparable
                                                  • + implements Comparable
                                                  • + implements Constable
                                                  • + implements ConstantDesc
                                                  System
                                                    runFinalizersOnExit(boolean)
                                                    Thread
                                                      destroy()
                                                      stop(Throwable)
                                                      Character.UnicodeScript
                                                        CharSequence
                                                          java.net
                                                            SecureCacheResponse
                                                              ServerSocket
                                                                java.nio.channels
                                                                  SelectionKey
                                                                    Selector
                                                                      java.nio.file
                                                                        Files
                                                                          Path
                                                                            java.nio
                                                                              ByteBuffer
                                                                                CharBuffer
                                                                                  DoubleBuffer
                                                                                    FloatBuffer
                                                                                      IntBuffer
                                                                                        LongBuffer
                                                                                          ShortBuffer
                                                                                            java.security.interfaces
                                                                                              DSAPrivateKey
                                                                                                • + deprecated
                                                                                                DSAPublicKey
                                                                                                  • + deprecated
                                                                                                  ECPrivateKey
                                                                                                    • + deprecated
                                                                                                    ECPublicKey
                                                                                                      • + deprecated
                                                                                                      RSAKey
                                                                                                        RSAMultiPrimePrivateCrtKey
                                                                                                          • + deprecated
                                                                                                          RSAPrivateCrtKey
                                                                                                            • + deprecated
                                                                                                            RSAPrivateKey
                                                                                                              • + deprecated
                                                                                                              RSAPublicKey
                                                                                                                • + deprecated
                                                                                                                java.security.spec
                                                                                                                  • - extends Object
                                                                                                                  • - implements AlgorithmParameterSpec
                                                                                                                  • + extends NamedParameterSpec
                                                                                                                  getName()
                                                                                                                  MGF1ParameterSpec
                                                                                                                    PSSParameterSpec
                                                                                                                      RSAKeyGenParameterSpec
                                                                                                                        RSAMultiPrimePrivateCrtKeySpec
                                                                                                                          RSAPrivateCrtKeySpec
                                                                                                                            RSAPrivateKeySpec
                                                                                                                              RSAPublicKeySpec
                                                                                                                                java.security
                                                                                                                                  PrivilegedActionException
                                                                                                                                    getCause()
                                                                                                                                    • removed
                                                                                                                                    Key
                                                                                                                                      • + deprecated
                                                                                                                                      PrivateKey
                                                                                                                                        • + deprecated
                                                                                                                                        PublicKey
                                                                                                                                          • + deprecated
                                                                                                                                          java.text.spi
                                                                                                                                            NumberFormatProvider
                                                                                                                                              java.text
                                                                                                                                                NumberFormat.Field
                                                                                                                                                  NumberFormat
                                                                                                                                                    java.util.concurrent
                                                                                                                                                      CompletableFuture
                                                                                                                                                        PriorityBlockingQueue
                                                                                                                                                          • added
                                                                                                                                                          • added
                                                                                                                                                          • added
                                                                                                                                                          • added
                                                                                                                                                          TimeUnit
                                                                                                                                                            CompletionStage
                                                                                                                                                              java.util.function
                                                                                                                                                                Predicate
                                                                                                                                                                  java.util.jar
                                                                                                                                                                    • + deprecated
                                                                                                                                                                    • + forRemoval
                                                                                                                                                                    • + deprecated
                                                                                                                                                                    • + forRemoval
                                                                                                                                                                    • + deprecated
                                                                                                                                                                    • + forRemoval
                                                                                                                                                                    java.util.regex
                                                                                                                                                                      Pattern
                                                                                                                                                                        java.util.stream
                                                                                                                                                                          Collectors
                                                                                                                                                                            java.util.zip
                                                                                                                                                                              Deflater
                                                                                                                                                                                finalize()
                                                                                                                                                                                Inflater
                                                                                                                                                                                  finalize()
                                                                                                                                                                                  ZipFile
                                                                                                                                                                                    finalize()
                                                                                                                                                                                    java.util
                                                                                                                                                                                      ArrayList
                                                                                                                                                                                        • added
                                                                                                                                                                                        • added
                                                                                                                                                                                        OptionalDouble
                                                                                                                                                                                          OptionalInt
                                                                                                                                                                                            OptionalLong
                                                                                                                                                                                              Optional
                                                                                                                                                                                                PriorityQueue
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  • added
                                                                                                                                                                                                  Collection
                                                                                                                                                                                                    javax.crypto.interfaces
                                                                                                                                                                                                      DHPrivateKey
                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                        DHPublicKey
                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                          PBEKey
                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                            javax.crypto.spec
                                                                                                                                                                                                              javax.crypto
                                                                                                                                                                                                                Cipher
                                                                                                                                                                                                                  SecretKey
                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                    javax.net.ssl
                                                                                                                                                                                                                      HttpsURLConnection
                                                                                                                                                                                                                        javax.security.auth
                                                                                                                                                                                                                          Policy
                                                                                                                                                                                                                          java.compiler
                                                                                                                                                                                                                            javax.lang.model.util
                                                                                                                                                                                                                              AbstractAnnotationValueVisitor7
                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                AbstractElementVisitor7
                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                  AbstractTypeVisitor7
                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                    ElementKindVisitor7
                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                      ElementScanner7
                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                        SimpleAnnotationValueVisitor7
                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                          SimpleElementVisitor7
                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                            SimpleTypeVisitor7
                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                              TypeKindVisitor7
                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                javax.lang.model
                                                                                                                                                                                                                                                  SourceVersion
                                                                                                                                                                                                                                                    java.corba
                                                                                                                                                                                                                                                    java.desktop
                                                                                                                                                                                                                                                      java.awt
                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                        javax.print.attribute.standard
                                                                                                                                                                                                                                                          javax.swing.filechooser
                                                                                                                                                                                                                                                            FileSystemView
                                                                                                                                                                                                                                                              javax.swing
                                                                                                                                                                                                                                                                DefaultComboBoxModel
                                                                                                                                                                                                                                                                  DefaultListModel
                                                                                                                                                                                                                                                                    ListSelectionModel
                                                                                                                                                                                                                                                                      java.naming
                                                                                                                                                                                                                                                                        javax.naming.directory
                                                                                                                                                                                                                                                                          Attribute
                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                            javax.naming
                                                                                                                                                                                                                                                                              Name
                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                java.rmi
                                                                                                                                                                                                                                                                                  java.rmi.server
                                                                                                                                                                                                                                                                                    RemoteRef
                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                      ServerRef
                                                                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                                                                        java.sql
                                                                                                                                                                                                                                                                                          javax.transaction.xa
                                                                                                                                                                                                                                                                                          java.transaction
                                                                                                                                                                                                                                                                                          java.xml.bind
                                                                                                                                                                                                                                                                                          java.xml.crypto
                                                                                                                                                                                                                                                                                            javax.xml.crypto.dsig
                                                                                                                                                                                                                                                                                              DigestMethod
                                                                                                                                                                                                                                                                                                SignatureMethod
                                                                                                                                                                                                                                                                                                  java.xml.ws.annotation
                                                                                                                                                                                                                                                                                                  java.xml.ws

                                                                                                                                                                                                                                                                                                  This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 12.0.2+10-adpt and 10.0.2-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.