Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stacktrace_to_short_text() for Java #249

Open
mhabrnal opened this issue Oct 7, 2016 · 0 comments
Open

Add stacktrace_to_short_text() for Java #249

mhabrnal opened this issue Oct 7, 2016 · 0 comments

Comments

@mhabrnal
Copy link

mhabrnal commented Oct 7, 2016

sr_stacktrace_to_short_text() uses for Java type the default stacktrace_to_short_text() function which do not normalize frames.

The truncated Java backtrace for 5 top frames can looks like follows:

#1 java.lang.NullPointerException
#2   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:30) [file:/usr/share/java/willcrash/willuncaught.jar]
#3   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:33) [file:/usr/share/java/willcrash/willuncaught.jar]
#4   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:33) [file:/usr/share/java/willcrash/willuncaught.jar]
#5   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:33) [file:/usr/share/java/willcrash/willuncaught.jar]

Some information is not needed in truncated backtrace, for instance file part. We would like to have something like follows:

#1 java.lang.NullPointerException
#2   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:30)
#3   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:33)
#4   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:33)
#5   at WontCatchNullPointerException.die_hard(WontCatchNullPointerException.java:33)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants