Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8165641 Deprecate Object.finalize
  3. JDK-8177970

Release Note: Deprecate Object.finalize

    XMLWordPrintable

    Details

    • Subcomponent:
    • Verification:
      Verified

      Description

      The `java.lang.Object.finalize` method has been deprecated.
      The finalization mechanism is inherently problematic and can lead to performance issues, deadlocks, and hangs.
      The `java.lang.ref.Cleaner` and `java.lang.ref.PhantomReference` provide more flexible and efficient ways to release resources when an object becomes unreachable.
      For further information, please see the `java.lang.Object.finalize` method specification.

        Attachments

          Activity

            People

            Assignee:
            rriggs Roger Riggs
            Reporter:
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: