I was able to apply the same changes to jdk8u-dev and it looks like it properly reports the function name in the stacktrace now. I can submit a fix so that this behavior is also available on jdk8.
On Fri, May 13, 2016 at 7:16 AM, Vivin Suresh Paliath < vivin.pali...@gmail.com> wrote: > +1 > > Would it be possible to backport this to jdk8? > On May 13, 2016 3:00 AM, "Sundararajan Athijegannathan" < > sundararajan.athijegannat...@oracle.com> wrote: > >> +1 >> >> >> On 5/13/2016 3:14 PM, Hannes Wallnoefer wrote: >> > Review request for JDK-8156896: Script stack trace should display >> > function names >> > >> > http://cr.openjdk.java.net/~hannesw/8156896/webrev/ >> > >> > This makes it possible to reliably get the original function name from >> > Java method names for display in script stack traces. It replaces '$' >> > with '#' as separator for nested function method names as '#' is not a >> > valid JS identifier part, but allowed in JVM method names. >> > >> > Hannes >> >> -- *[vivin.net <http://vivin.net> :: github <http://github.com/vivin> :: linkedin <https://www.linkedin.com/in/vivin>]*