-
Bug
-
Resolution: Fixed
-
P4
-
None
-
None
-
b119
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8163779 | 8u121 | Hannes Wallnoefer | P4 | Resolved | Fixed | b01 |
JDK-8157863 | 8u112 | Hannes Wallnoefer | P4 | Resolved | Fixed | b01 |
JDK-8167946 | emb-8u121 | Hannes Wallnoefer | P4 | Resolved | Fixed | b01 |
Currently Nashorn script stack traces display Java method names instead of JS function names. Java method names are composed from the function name appended to the names of its parent functions using '$' as separator. If any function in the chain is anonymous, the function itself will be displayed as "<anonymous>" in the stack trace.
To solve this, we need to use a character that is not a valid ECMA identifier character as method separator name, but is allowed in Java method names. This would allow us to get the original function name from the Java method name and display it in script stack traces.
To solve this, we need to use a character that is not a valid ECMA identifier character as method separator name, but is allowed in Java method names. This would allow us to get the original function name from the Java method name and display it in script stack traces.
- backported by
-
JDK-8157863 Script stack trace should display function names
- Resolved
-
JDK-8163779 Script stack trace should display function names
- Resolved
-
JDK-8167946 Script stack trace should display function names
- Resolved