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

New APIs in Java 15

Comparing Java 15 (15+36-adpt) with Java 11 (11.0.8+10-adpt).

Element Modification
java.base
    java.io
      • added
      FileInputStream
        finalize()
        • removed
        FileOutputStream
          finalize()
          • removed
          InputStream
            • added
            PrintStream
              • added
              • added
              java.lang.annotation
                ElementType
                  • added
                  • added
                  java.lang.invoke
                    ClassSpecializer.Factory
                      ClassSpecializer.Factory(ClassSpecializer)
                      • removed
                      ConstantBootstraps
                        ConstantBootstraps()
                        • removed
                        • added
                        • + implements Constable
                        • added
                        MethodHandles.Lookup
                          • added
                          • added
                          • added
                          • + deprecated
                          • added
                          • + implements TypeDescriptor.OfMethod
                          • + implements Constable
                          • added
                          • added
                          • added
                          • + implements Constable
                          • - final
                          • added
                          • - final
                          • added
                          • - final
                          • added
                          • added
                          • added
                          • added
                          java.lang.reflect
                            Modifier
                              Modifier()
                              • removed
                              • added
                              UndeclaredThrowableException
                                getCause()
                                • removed
                                AnnotatedType
                                  • added
                                  • added
                                  • added
                                  • added
                                  java.lang
                                    • + implements Constable
                                    • added
                                    • + implements Constable
                                    • added
                                    Character.UnicodeBlock
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • added
                                      • + implements Constable
                                      • added
                                      ClassNotFoundException
                                        getCause()
                                        • removed
                                        • + implements TypeDescriptor.OfField
                                        • + implements Constable
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • added
                                        • + implements ConstantDesc
                                        • + implements Constable
                                        • added
                                        • added
                                        • added
                                        • + implements Constable
                                        • added
                                        ExceptionInInitializerError
                                          getCause()
                                          • removed
                                          • + implements ConstantDesc
                                          • + implements Constable
                                          • added
                                          • added
                                          • + implements ConstantDesc
                                          • + implements Constable
                                          • added
                                          • added
                                          LiveStackFrame.PrimitiveSlot
                                            LiveStackFrame.PrimitiveSlot()
                                            • removed
                                            • + implements ConstantDesc
                                            • + implements Constable
                                            • added
                                            • added
                                            Math
                                              • added
                                              • added
                                              NullPointerException
                                                • added
                                                • added
                                                • added
                                                Runtime
                                                  traceInstructions(boolean)
                                                  • removed
                                                  traceMethodCalls(boolean)
                                                  • removed
                                                  • + implements Constable
                                                  • added
                                                  StrictMath
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • + implements ConstantDesc
                                                    • + implements Constable
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    • added
                                                    ThreadGroup
                                                      • + forRemoval
                                                      • + forRemoval
                                                      • + forRemoval
                                                      Thread
                                                        • + forRemoval
                                                        • + forRemoval
                                                        Character.UnicodeScript
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          • added
                                                          CharSequence
                                                            • added
                                                            java.net
                                                              MulticastSocket
                                                                • + deprecated
                                                                • + deprecated
                                                                • + deprecated
                                                                • + deprecated
                                                                • + deprecated
                                                                • + deprecated
                                                                supportedOptions()
                                                                • removed
                                                                SecureCacheResponse
                                                                  • added
                                                                  ServerSocket
                                                                    • added
                                                                    java.nio.channels.spi
                                                                      SelectorProvider
                                                                        • added
                                                                        • added
                                                                        java.nio.channels
                                                                          ServerSocketChannel
                                                                            • added
                                                                            SocketChannel
                                                                              • added
                                                                              java.nio.file
                                                                                FileSystems
                                                                                  • added
                                                                                  • added
                                                                                  • added
                                                                                  Files
                                                                                    • added
                                                                                    java.nio
                                                                                      Buffer
                                                                                        • added
                                                                                        ByteBuffer
                                                                                          • added
                                                                                          • added
                                                                                          • added
                                                                                          • added
                                                                                          • added
                                                                                          CharBuffer
                                                                                            • added
                                                                                            • added
                                                                                            • added
                                                                                            • added
                                                                                            • added
                                                                                            • added
                                                                                            DoubleBuffer
                                                                                              • added
                                                                                              • added
                                                                                              • added
                                                                                              • added
                                                                                              • added
                                                                                              FloatBuffer
                                                                                                • added
                                                                                                • added
                                                                                                • added
                                                                                                • added
                                                                                                • added
                                                                                                IntBuffer
                                                                                                  • added
                                                                                                  • added
                                                                                                  • added
                                                                                                  • added
                                                                                                  • added
                                                                                                  LongBuffer
                                                                                                    • added
                                                                                                    • added
                                                                                                    • added
                                                                                                    • added
                                                                                                    • added
                                                                                                    MappedByteBuffer
                                                                                                      • added
                                                                                                      ShortBuffer
                                                                                                        • added
                                                                                                        • added
                                                                                                        • added
                                                                                                        • added
                                                                                                        • added
                                                                                                        java.security.acl
                                                                                                        • removed
                                                                                                        java.security.interfaces
                                                                                                          DSAPrivateKey
                                                                                                            • + deprecated
                                                                                                            DSAPublicKey
                                                                                                              • + deprecated
                                                                                                              ECPrivateKey
                                                                                                                • + deprecated
                                                                                                                ECPublicKey
                                                                                                                  • + deprecated
                                                                                                                  • added
                                                                                                                  • added
                                                                                                                  • added
                                                                                                                  RSAMultiPrimePrivateCrtKey
                                                                                                                    • + deprecated
                                                                                                                    RSAPrivateCrtKey
                                                                                                                      • + deprecated
                                                                                                                      RSAPrivateKey
                                                                                                                        • + deprecated
                                                                                                                        RSAPublicKey
                                                                                                                          • + deprecated
                                                                                                                          java.security.spec
                                                                                                                            • added
                                                                                                                            • added
                                                                                                                            • added
                                                                                                                            • added
                                                                                                                            NamedParameterSpec
                                                                                                                              • added
                                                                                                                              • added
                                                                                                                              java.security
                                                                                                                                PrivilegedActionException
                                                                                                                                  getCause()
                                                                                                                                  • removed
                                                                                                                                  Key
                                                                                                                                    • + deprecated
                                                                                                                                    PrivateKey
                                                                                                                                      • + deprecated
                                                                                                                                      PublicKey
                                                                                                                                        • + deprecated
                                                                                                                                        java.text.spi
                                                                                                                                          NumberFormatProvider
                                                                                                                                            • added
                                                                                                                                            java.text
                                                                                                                                              • added
                                                                                                                                              DecimalFormatSymbols
                                                                                                                                                • added
                                                                                                                                                • added
                                                                                                                                                NumberFormat.Field
                                                                                                                                                  • added
                                                                                                                                                  • added
                                                                                                                                                  NumberFormat
                                                                                                                                                    • added
                                                                                                                                                    • added
                                                                                                                                                    • added
                                                                                                                                                    java.time.chrono
                                                                                                                                                      JapaneseEra
                                                                                                                                                        • added
                                                                                                                                                        java.util.concurrent.locks
                                                                                                                                                          AbstractQueuedLongSynchronizer
                                                                                                                                                            • - protected
                                                                                                                                                            • + public
                                                                                                                                                            LockSupport
                                                                                                                                                              • added
                                                                                                                                                              java.util.concurrent
                                                                                                                                                                CompletableFuture
                                                                                                                                                                  • added
                                                                                                                                                                  • added
                                                                                                                                                                  • added
                                                                                                                                                                  • added
                                                                                                                                                                  • added
                                                                                                                                                                  CompletionStage
                                                                                                                                                                    • added
                                                                                                                                                                    • added
                                                                                                                                                                    • added
                                                                                                                                                                    • added
                                                                                                                                                                    • added
                                                                                                                                                                    java.util.jar
                                                                                                                                                                      Pack200
                                                                                                                                                                      • removed
                                                                                                                                                                      Pack200.Packer
                                                                                                                                                                      • removed
                                                                                                                                                                      Pack200.Unpacker
                                                                                                                                                                      • removed
                                                                                                                                                                      java.util.stream
                                                                                                                                                                        Collectors
                                                                                                                                                                          • added
                                                                                                                                                                          java.util.zip
                                                                                                                                                                            Deflater
                                                                                                                                                                              finalize()
                                                                                                                                                                              • removed
                                                                                                                                                                              Inflater
                                                                                                                                                                                finalize()
                                                                                                                                                                                • removed
                                                                                                                                                                                ZipFile
                                                                                                                                                                                  finalize()
                                                                                                                                                                                  • removed
                                                                                                                                                                                  java.util
                                                                                                                                                                                    HashSet
                                                                                                                                                                                      • added
                                                                                                                                                                                      • added
                                                                                                                                                                                      NoSuchElementException
                                                                                                                                                                                        • added
                                                                                                                                                                                        • added
                                                                                                                                                                                        TreeMap
                                                                                                                                                                                          • added
                                                                                                                                                                                          • added
                                                                                                                                                                                          • added
                                                                                                                                                                                          • added
                                                                                                                                                                                          • added
                                                                                                                                                                                          javax.crypto.interfaces
                                                                                                                                                                                            DHPrivateKey
                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                              DHPublicKey
                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                PBEKey
                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                  javax.crypto
                                                                                                                                                                                                    Cipher
                                                                                                                                                                                                      • added
                                                                                                                                                                                                      SecretKey
                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                        javax.net.ssl
                                                                                                                                                                                                          HandshakeCompletedEvent
                                                                                                                                                                                                            • + forRemoval
                                                                                                                                                                                                            HttpsURLConnection
                                                                                                                                                                                                              • added
                                                                                                                                                                                                              SSLSession
                                                                                                                                                                                                                • - abstract
                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                javax.security.cert
                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                  • + forRemoval
                                                                                                                                                                                                                  java.compiler
                                                                                                                                                                                                                    javax.annotation.processing
                                                                                                                                                                                                                      ProcessingEnvironment
                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                        javax.lang.model.element
                                                                                                                                                                                                                          ElementKind
                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                            • - final
                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                            ElementVisitor
                                                                                                                                                                                                                              • added
                                                                                                                                                                                                                              Element
                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                ExecutableElement
                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                  ModuleElement
                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                    PackageElement
                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                      TypeElement
                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                        TypeParameterElement
                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                          VariableElement
                                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                                            javax.lang.model.type
                                                                                                                                                                                                                                              TypeMirror
                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                javax.lang.model.util
                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                  AbstractAnnotationValueVisitor7
                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                    AbstractElementVisitor6
                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                      AbstractElementVisitor7
                                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                                        AbstractTypeVisitor7
                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                          ElementFilter
                                                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                                                            ElementKindVisitor6
                                                                                                                                                                                                                                                              • added
                                                                                                                                                                                                                                                              • added
                                                                                                                                                                                                                                                              ElementKindVisitor7
                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                ElementScanner7
                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                  • added
                                                                                                                                                                                                                                                                  SimpleAnnotationValueVisitor7
                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                    SimpleElementVisitor7
                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                      SimpleTypeVisitor7
                                                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                                                        TypeKindVisitor7
                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                          Elements
                                                                                                                                                                                                                                                                            • added
                                                                                                                                                                                                                                                                            javax.lang.model
                                                                                                                                                                                                                                                                              SourceVersion
                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                javax.tools
                                                                                                                                                                                                                                                                                  ToolProvider
                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                    StandardJavaFileManager
                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                      java.desktop
                                                                                                                                                                                                                                                                                        java.awt.peer
                                                                                                                                                                                                                                                                                          ComponentPeer
                                                                                                                                                                                                                                                                                            checkImage(Image, int, int, ImageObserver)
                                                                                                                                                                                                                                                                                            • removed
                                                                                                                                                                                                                                                                                            createImage(ImageProducer)
                                                                                                                                                                                                                                                                                            • removed
                                                                                                                                                                                                                                                                                            prepareImage(Image, int, int, ImageObserver)
                                                                                                                                                                                                                                                                                            • removed
                                                                                                                                                                                                                                                                                            MenuPeer
                                                                                                                                                                                                                                                                                              addSeparator()
                                                                                                                                                                                                                                                                                              • removed
                                                                                                                                                                                                                                                                                              RobotPeer
                                                                                                                                                                                                                                                                                                dispose()
                                                                                                                                                                                                                                                                                                • removed
                                                                                                                                                                                                                                                                                                javax.swing.filechooser
                                                                                                                                                                                                                                                                                                  FileSystemView
                                                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                                                    java.management.rmi
                                                                                                                                                                                                                                                                                                      javax.management.remote.rmi
                                                                                                                                                                                                                                                                                                        RMIConnectorServer
                                                                                                                                                                                                                                                                                                          CREDENTIAL_TYPES
                                                                                                                                                                                                                                                                                                          • removed
                                                                                                                                                                                                                                                                                                          java.naming
                                                                                                                                                                                                                                                                                                            javax.naming.directory
                                                                                                                                                                                                                                                                                                              Attribute
                                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                                • added
                                                                                                                                                                                                                                                                                                                javax.naming
                                                                                                                                                                                                                                                                                                                  Name
                                                                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                                                                    java.rmi
                                                                                                                                                                                                                                                                                                                      java.rmi.activation
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                                                        java.rmi.server
                                                                                                                                                                                                                                                                                                                          RemoteRef
                                                                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                                                                            ServerRef
                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                              java.security.jgss
                                                                                                                                                                                                                                                                                                                                javax.security.auth.kerberos
                                                                                                                                                                                                                                                                                                                                  KerberosPrincipal
                                                                                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                                                                                    java.xml.crypto
                                                                                                                                                                                                                                                                                                                                      javax.xml.crypto.dsig.keyinfo
                                                                                                                                                                                                                                                                                                                                        KeyValue
                                                                                                                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                                                                                                                          javax.xml.crypto.dsig
                                                                                                                                                                                                                                                                                                                                            CanonicalizationMethod
                                                                                                                                                                                                                                                                                                                                              • added
                                                                                                                                                                                                                                                                                                                                              • added
                                                                                                                                                                                                                                                                                                                                              java.xml
                                                                                                                                                                                                                                                                                                                                                javax.xml.parsers
                                                                                                                                                                                                                                                                                                                                                  DocumentBuilderFactory
                                                                                                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                                                                                                    • added
                                                                                                                                                                                                                                                                                                                                                    SAXParserFactory
                                                                                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                                                                                      Data Source

                                                                                                                                                                                                                                                                                                                                                      This report is based on simple comparison of all public and protected APIs of the java.* and javax.* packages of JDK builds 15+36-adpt and 11.0.8+10-adpt. It does not make statements about compatibility.

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