Remove Thread.countStackFrames

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: