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

New APIs in Java 15

Comparing Java 15 (15.0.2+7-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
                      PrintStream
                        Reader
                          Writer
                            java.lang.annotation
                              ElementType
                                java.lang.invoke
                                  ClassSpecializer.Factory
                                    Factory(ClassSpecializer)
                                    • removed
                                    • + implements Constable
                                    MethodHandles.Lookup
                                      • + deprecated
                                      • + implements Constable
                                      • + implements TypeDescriptor.OfMethod
                                      • + implements Constable
                                      • - final
                                      • - final
                                      • - final
                                      java.lang.ref
                                        Reference
                                          java.lang.reflect
                                            Modifier
                                              Modifier()
                                              UndeclaredThrowableException
                                                getCause()
                                                • removed
                                                AnnotatedType
                                                  • added
                                                  • added
                                                  • added
                                                  java.lang
                                                    • + implements Constable
                                                    • + implements Constable
                                                    Character.UnicodeBlock
                                                      • + implements Constable
                                                      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
                                                          LiveStackFrame.PrimitiveSlot
                                                            PrimitiveSlot()
                                                            • removed
                                                            • + implements Constable
                                                            • + implements ConstantDesc
                                                            Math
                                                              NullPointerException
                                                                • added
                                                                • added
                                                                Runtime
                                                                  runFinalizersOnExit(boolean)
                                                                  traceInstructions(boolean)
                                                                  traceMethodCalls(boolean)
                                                                  SecurityManager
                                                                    checkAwtEventQueueAccess()
                                                                    checkMemberAccess(Class, int)
                                                                    checkSystemClipboardAccess()
                                                                    checkTopLevelWindow(Object)
                                                                    • + implements Constable
                                                                    StrictMath
                                                                      • + implements Comparable
                                                                      • + implements Comparable
                                                                      • + implements Constable
                                                                      • + implements ConstantDesc
                                                                      System
                                                                        runFinalizersOnExit(boolean)
                                                                        ThreadGroup
                                                                          • + forRemoval
                                                                          • + forRemoval
                                                                          • + forRemoval
                                                                          Thread
                                                                            destroy()
                                                                            • + forRemoval
                                                                            stop(Throwable)
                                                                            • + forRemoval
                                                                            Character.UnicodeScript
                                                                              CharSequence
                                                                                java.net
                                                                                  MulticastSocket
                                                                                    • + deprecated
                                                                                    • + deprecated
                                                                                    • + deprecated
                                                                                    • + deprecated
                                                                                    • + deprecated
                                                                                    • + deprecated
                                                                                    supportedOptions()
                                                                                    • removed
                                                                                    SecureCacheResponse
                                                                                      ServerSocket
                                                                                        java.nio.channels.spi
                                                                                          SelectorProvider
                                                                                            java.nio.channels
                                                                                              SelectionKey
                                                                                                Selector
                                                                                                  ServerSocketChannel
                                                                                                    SocketChannel
                                                                                                      java.nio.file
                                                                                                        FileSystems
                                                                                                          Files
                                                                                                            Path
                                                                                                              java.nio
                                                                                                                Buffer
                                                                                                                  ByteBuffer
                                                                                                                    CharBuffer
                                                                                                                      DoubleBuffer
                                                                                                                        FloatBuffer
                                                                                                                          IntBuffer
                                                                                                                            LongBuffer
                                                                                                                              MappedByteBuffer
                                                                                                                                ShortBuffer
                                                                                                                                  java.security.acl
                                                                                                                                  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
                                                                                                                                                                                      DecimalFormatSymbols
                                                                                                                                                                                        NumberFormat.Field
                                                                                                                                                                                          NumberFormat
                                                                                                                                                                                            java.time.chrono
                                                                                                                                                                                              JapaneseEra
                                                                                                                                                                                                java.util.concurrent.locks
                                                                                                                                                                                                  AbstractQueuedLongSynchronizer
                                                                                                                                                                                                    • - protected
                                                                                                                                                                                                    • + public
                                                                                                                                                                                                    LockSupport
                                                                                                                                                                                                      java.util.concurrent
                                                                                                                                                                                                        CompletableFuture
                                                                                                                                                                                                          PriorityBlockingQueue
                                                                                                                                                                                                            • added
                                                                                                                                                                                                            • added
                                                                                                                                                                                                            • added
                                                                                                                                                                                                            • added
                                                                                                                                                                                                            TimeUnit
                                                                                                                                                                                                              CompletionStage
                                                                                                                                                                                                                java.util.function
                                                                                                                                                                                                                  Predicate
                                                                                                                                                                                                                    java.util.jar
                                                                                                                                                                                                                      Pack200
                                                                                                                                                                                                                      Pack200.Packer
                                                                                                                                                                                                                      Pack200.Unpacker
                                                                                                                                                                                                                      java.util.regex
                                                                                                                                                                                                                        Pattern
                                                                                                                                                                                                                          java.util.stream
                                                                                                                                                                                                                            Collectors
                                                                                                                                                                                                                              java.util.zip
                                                                                                                                                                                                                                Deflater
                                                                                                                                                                                                                                  finalize()
                                                                                                                                                                                                                                  Inflater
                                                                                                                                                                                                                                    finalize()
                                                                                                                                                                                                                                    ZipFile
                                                                                                                                                                                                                                      finalize()
                                                                                                                                                                                                                                      java.util
                                                                                                                                                                                                                                        ArrayList
                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                          • added
                                                                                                                                                                                                                                          HashSet
                                                                                                                                                                                                                                            NoSuchElementException
                                                                                                                                                                                                                                              OptionalDouble
                                                                                                                                                                                                                                                OptionalInt
                                                                                                                                                                                                                                                  OptionalLong
                                                                                                                                                                                                                                                    Optional
                                                                                                                                                                                                                                                      PriorityQueue
                                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                                        • added
                                                                                                                                                                                                                                                        TreeMap
                                                                                                                                                                                                                                                          Collection
                                                                                                                                                                                                                                                            javax.crypto.interfaces
                                                                                                                                                                                                                                                              DHPrivateKey
                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                DHPublicKey
                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                  PBEKey
                                                                                                                                                                                                                                                                    • + deprecated
                                                                                                                                                                                                                                                                    javax.crypto.spec
                                                                                                                                                                                                                                                                      javax.crypto
                                                                                                                                                                                                                                                                        Cipher
                                                                                                                                                                                                                                                                          SecretKey
                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                            javax.net.ssl
                                                                                                                                                                                                                                                                              HandshakeCompletedEvent
                                                                                                                                                                                                                                                                                • + forRemoval
                                                                                                                                                                                                                                                                                HttpsURLConnection
                                                                                                                                                                                                                                                                                  SSLSession
                                                                                                                                                                                                                                                                                    • - abstract
                                                                                                                                                                                                                                                                                    • + forRemoval
                                                                                                                                                                                                                                                                                    javax.security.auth
                                                                                                                                                                                                                                                                                      Policy
                                                                                                                                                                                                                                                                                      javax.security.cert
                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                        • + forRemoval
                                                                                                                                                                                                                                                                                        java.compiler
                                                                                                                                                                                                                                                                                          javax.annotation.processing
                                                                                                                                                                                                                                                                                            ProcessingEnvironment
                                                                                                                                                                                                                                                                                              javax.lang.model.element
                                                                                                                                                                                                                                                                                                ElementKind
                                                                                                                                                                                                                                                                                                  • - final
                                                                                                                                                                                                                                                                                                  ElementVisitor
                                                                                                                                                                                                                                                                                                    Element
                                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                                      ExecutableElement
                                                                                                                                                                                                                                                                                                        ModuleElement
                                                                                                                                                                                                                                                                                                          PackageElement
                                                                                                                                                                                                                                                                                                            TypeElement
                                                                                                                                                                                                                                                                                                              TypeParameterElement
                                                                                                                                                                                                                                                                                                                VariableElement
                                                                                                                                                                                                                                                                                                                  javax.lang.model.type
                                                                                                                                                                                                                                                                                                                    TypeMirror
                                                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                                                      • added
                                                                                                                                                                                                                                                                                                                      javax.lang.model.util
                                                                                                                                                                                                                                                                                                                        AbstractAnnotationValueVisitor7
                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                          AbstractElementVisitor6
                                                                                                                                                                                                                                                                                                                            AbstractElementVisitor7
                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                              AbstractTypeVisitor7
                                                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                                                ElementFilter
                                                                                                                                                                                                                                                                                                                                  ElementKindVisitor6
                                                                                                                                                                                                                                                                                                                                    ElementKindVisitor7
                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                      ElementScanner7
                                                                                                                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                                                                                                                        • + deprecated
                                                                                                                                                                                                                                                                                                                                        SimpleAnnotationValueVisitor7
                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                          SimpleElementVisitor7
                                                                                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                                                                                            SimpleTypeVisitor7
                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                              TypeKindVisitor7
                                                                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                                                                Elements
                                                                                                                                                                                                                                                                                                                                                  javax.lang.model
                                                                                                                                                                                                                                                                                                                                                    SourceVersion
                                                                                                                                                                                                                                                                                                                                                      javax.tools
                                                                                                                                                                                                                                                                                                                                                        ToolProvider
                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                          StandardJavaFileManager
                                                                                                                                                                                                                                                                                                                                                            • + deprecated
                                                                                                                                                                                                                                                                                                                                                            java.corba
                                                                                                                                                                                                                                                                                                                                                            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
                                                                                                                                                                                                                                                                                                                                                                      java.awt
                                                                                                                                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                                                                                                                                        • + implements Serializable
                                                                                                                                                                                                                                                                                                                                                                        javax.print.attribute.standard
                                                                                                                                                                                                                                                                                                                                                                          javax.swing.filechooser
                                                                                                                                                                                                                                                                                                                                                                            FileSystemView
                                                                                                                                                                                                                                                                                                                                                                              javax.swing
                                                                                                                                                                                                                                                                                                                                                                                DefaultComboBoxModel
                                                                                                                                                                                                                                                                                                                                                                                  DefaultListModel
                                                                                                                                                                                                                                                                                                                                                                                    ListSelectionModel
                                                                                                                                                                                                                                                                                                                                                                                      java.management.rmi
                                                                                                                                                                                                                                                                                                                                                                                        javax.management.remote.rmi
                                                                                                                                                                                                                                                                                                                                                                                          RMIConnectorServer
                                                                                                                                                                                                                                                                                                                                                                                            CREDENTIAL_TYPES
                                                                                                                                                                                                                                                                                                                                                                                            • removed
                                                                                                                                                                                                                                                                                                                                                                                            java.naming
                                                                                                                                                                                                                                                                                                                                                                                              javax.naming.directory
                                                                                                                                                                                                                                                                                                                                                                                                Attribute
                                                                                                                                                                                                                                                                                                                                                                                                  • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                  javax.naming
                                                                                                                                                                                                                                                                                                                                                                                                    Name
                                                                                                                                                                                                                                                                                                                                                                                                      • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                      java.rmi
                                                                                                                                                                                                                                                                                                                                                                                                        java.rmi.activation
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                          • + forRemoval
                                                                                                                                                                                                                                                                                                                                                                                                          java.rmi.server
                                                                                                                                                                                                                                                                                                                                                                                                            RemoteRef
                                                                                                                                                                                                                                                                                                                                                                                                              • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                              ServerRef
                                                                                                                                                                                                                                                                                                                                                                                                                • + deprecated
                                                                                                                                                                                                                                                                                                                                                                                                                java.security.jgss
                                                                                                                                                                                                                                                                                                                                                                                                                  javax.security.auth.kerberos
                                                                                                                                                                                                                                                                                                                                                                                                                    KerberosPrincipal
                                                                                                                                                                                                                                                                                                                                                                                                                      java.sql
                                                                                                                                                                                                                                                                                                                                                                                                                        javax.transaction.xa
                                                                                                                                                                                                                                                                                                                                                                                                                        java.transaction
                                                                                                                                                                                                                                                                                                                                                                                                                        java.xml.bind
                                                                                                                                                                                                                                                                                                                                                                                                                        java.xml.crypto
                                                                                                                                                                                                                                                                                                                                                                                                                          javax.xml.crypto.dsig.keyinfo
                                                                                                                                                                                                                                                                                                                                                                                                                            KeyValue
                                                                                                                                                                                                                                                                                                                                                                                                                              javax.xml.crypto.dsig
                                                                                                                                                                                                                                                                                                                                                                                                                                CanonicalizationMethod
                                                                                                                                                                                                                                                                                                                                                                                                                                  DigestMethod
                                                                                                                                                                                                                                                                                                                                                                                                                                    SignatureMethod
                                                                                                                                                                                                                                                                                                                                                                                                                                      java.xml.ws.annotation
                                                                                                                                                                                                                                                                                                                                                                                                                                      java.xml.ws
                                                                                                                                                                                                                                                                                                                                                                                                                                      java.xml
                                                                                                                                                                                                                                                                                                                                                                                                                                        javax.xml.parsers
                                                                                                                                                                                                                                                                                                                                                                                                                                          DocumentBuilderFactory
                                                                                                                                                                                                                                                                                                                                                                                                                                            SAXParserFactory

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