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

Use SourceDebugExtension in stack traces

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Fix
    • P4
    • tbd
    • 5.0
    • hotspot

    Description



      Name: tb29552 Date: 12/26/2003


      It would be useful if java.lang.Throwable printStackTrace() and fillInStackTrace()
      used the extra information provided by SourceDebugExtension [NOTE 1] if that
      information is available.

      A user writes:

        I'm investigating using SourceDebugExtension for compiling a non-java language,
        Nice: http://nice.sf.net. So far the results are promising, in that jdb reports
        files and line numbers as encoded in the SMAP my compiler generates. So far, so
        good.

        However, if a stack trace is generated, I think the jvm should also try to use
        the info in SourceDebugExtension for the default stratum if available, to report
        the line numbers of the stack locations. I found that it does not. Is there a
        plan to implement this in a future version of the JDK? Should I open a bug
        report in the bug database about this?


      [NOTE 1] as implemented in JSR 45 "Debugging Support for Other Languages"
          http://jcp.org/en/jsr/detail?id=45



      ======================================================================

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              tbell Tim Bell
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: