Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8309196

Remove Thread.countStackFrames

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • None
    • core-libs
    • b01

      Thread.countStackFrames is an ill-defined method from JDK 1.0 that depended on thread suspension. The history on this method is:

      - Deprecated in JDK 1.2 (1998)
      - Deprecated for removal in Java 9
      - Re-specified/degraded to throw UOE unconditionally in Java 14

      The StackWalker API was added in Java 9 to support stack walking needs. This provides a much better API for anything that might need to count stack frames.

      A corpus analysis of 30M classes in 131k artifacts, found 1 references to this method.

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

              Created:
              Updated:
              Resolved: