Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8314449

Clarify the name of the declaring class of StackTraceElement

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • 21
    • core-libs
    • b12

      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.

            mchung Mandy Chung (Inactive)
            mchung Mandy Chung (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: