Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309196 Remove Thread.countStackFrames
  3. JDK-8309678

Release Note: `Thread.countStackFrames` Has Been Removed

XMLWordPrintable

      The method `java.lang.Thread.countStackFrames()` has been removed in this release. This method dates from JDK 1.0 as an API for counting the stack frames of a suspended thread. The method was deprecated in JDK 1.2 (1998), deprecated for removal in Java 9, and re-specified/degraded in Java 14 to throw `UnsupportedOperationException` unconditionally.

      `java.lang.StackWalker` was added in Java 9 as a modern API for walking the current thread's stack.

            alanb Alan Bateman
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: