-
Notifications
You must be signed in to change notification settings - Fork 738
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
Show module version in stack trace #11447
Comments
The StackTraceElement#toString today pass false fixed to the extended argument, maybe change to public String toString() {
StringBuilder buf = new StringBuilder(80);
Util.printStackTraceElement(this, source, buf, false);
return buf.toString();
} public String toString() {
StringBuilder buf = new StringBuilder(80);
Util.printStackTraceElement(this, source, buf, source != null);
return buf.toString();
} |
If OpenJ9 isn't printing module versions by default while Hotspot does, OpenJ9 should be fixed to match the behavior. |
Reproduced the issue using the example program from #11452 (comment) enclosed in OpenJ9 Output
RI Output
I'll be updating |
Currently, the default behavior using JPMS is that the stack trace doesn't show the version of the module. This is different from Hotspot, but I guess this is implementation-specific.
However, there is an option
-verbose:stacktrace
. Maybe we could show the module number using this option?Example Stacktrace Hotspot:
Example Stacktrace OpenJ9:
The text was updated successfully, but these errors were encountered: