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

Fix full_message formatting and Throwable impl #8229

Merged
merged 5 commits into from
May 8, 2024

Conversation

headius
Copy link
Member

@headius headius commented May 8, 2024

  • java.lang.Throwable#full_message uses the same logic as Exception#full_message but without #detailed_message it did not include the exception message in output.
  • Shared full_message logic did not insert newlines between backtrace lines.

Used by #full_message now for the exception message.
@headius headius added this to the JRuby 10.0.0.0 milestone May 8, 2024
* Check tty only in certain cases (yes for full_message,
  no for detailed_message)
* Pass highlighting from full_message through to detailed_message
  including tty check.
* Don't append tail if it's empty, because that gives us a rogue
  newline character.
* Java strings are always unicode, so we should encode as UTF-8
  for concatenation.
* The resulting encoded string should always be valid.
@headius headius merged commit 06053e4 into jruby:9.5-dev May 8, 2024
32 of 59 checks passed
@headius headius deleted the java_throwable_full_message branch May 8, 2024 21:41
@headius headius restored the java_throwable_full_message branch May 8, 2024 21:58
@headius headius deleted the java_throwable_full_message branch May 8, 2024 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant