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

Clarify the name of the declaring class of StackTraceElement

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: