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.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.3