Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-26038 Support JDK17
  3. HBASE-26048

[JDK17] Replace the usage of deprecated API ThreadGroup.destroy()

    XMLWordPrintableJSON

Details

    • Reviewed

    Description

      According to the JDK17 doc, ThreadGroup.destroy() is deprecated because

      Deprecated, for removal: This API element is subject to removal in a future version.

      The API and mechanism for destroying a ThreadGroup is inherently flawed. The ability to explicitly or automatically destroy a thread group will be removed in a future release.

      https://download.java.net/java/early_access/jdk17/docs/api/java.base/java/lang/ThreadGroup.html#destroy()

      We don't necessarily need to remove this usage now, but the warning sounds bad enough.

      Attachments

        Issue Links

          Activity

            People

              zhangduo Duo Zhang
              weichiu Wei-Chiu Chuang
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: