Hacker News new | ask | show | jobs
by papercrane 990 days ago
If you're using Java 9+ there is an official API to do that. It's the StackWaker class.

https://docs.oracle.com/javase%2F9%2Fdocs%2Fapi%2F%2F/java/l...

1 comments

Many thanks. Will look at it.