Stack-Walking API

suggest change

Versions

[{“Name”:“Java SE 9 (Early Access)”,“GroupName”:null}]

Introduction

Prior to Java 9, access to the thread stack frames was limited to an internal class sun.reflect.Reflection. Specifically the method sun.reflect.Reflection::getCallerClass. Some libraries relies on this method which is deprecated.

An alternative standard API is now provided in JDK 9 via the java.lang.StackWalker class, and is designed to be efficient by allowing lazy access to the stack frames. Some applications may use this API to traverse the execution stack and filter on classes.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Stack-Walking API:
* Stack-Walking API

Table Of Contents
8 Arrays
10 Maps
11 Strings
25 JAXB
29 Enums
32 Audio
41 Scanner
63 Logging
75 Lists
78 Sets
89 JAX-WS
96 XJC
98 Process
106 Modules
114 Applets
122 JNDI
139 JavaBean
141 Literals
144 Packages
150 JMX
153 JShell
157 Stack-Walking API
159 Sockets
167 Enum Map
175 Hashtable
177 SortedMap