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
======================================================================
- duplicates
-
JDK-8272568 Incorrect line numbers in stack traces when using Kotlin
- Closed