The declaringClass parameter of the StackTraceElement constructor should be the "binary name" not "fully qualified name". Same for `StackTraceElement::getClassName`. The specification should be updated.
Note that the javadoc of `StackWalker.StackFrame::getClassName` is correct and it specifies that it returns the binary name.
Note that the javadoc of `StackWalker.StackFrame::getClassName` is correct and it specifies that it returns the binary name.
- csr for
-
JDK-8314454 Clarify the name of the declaring class of StackTraceElement
-
- Closed
-
- relates to
-
JDK-4628117 (spec) clarification for methods which return/require class names (use of '$')
-
- Open
-