You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Operating system and platform: Linux 9a933b6ff814 5.10.47-linuxkit break script engine #1 SMP Sat Jul 3 21:51:47 UTC 2021 x86_64 GNU/Linux
Example
require 'thwait'
thread = Thread.new do
Thread.current.report_on_exception = false
raise "whoops"
end
ThreadsWait.all_waits(thread)
Expected Behavior
No report_on_exception warning is raised.
Actual Behavior
We get an unexpected log like:
warning: thread "Ruby-0-Thread-2: /opt/jruby/lib/ruby/stdlib/thwait.rb:91" terminated with exception (report_on_exception is true):
RuntimeError: whoops
evaluate_ruby at (pry):1
NOTE:
Seems like there are plans to not include thwait by default to match Ruby 2.7 behavior: #6464
We probably want this fixed for the JRuby version of them, however.
The text was updated successfully, but these errors were encountered:
I can confirm that the official thwait gem does NOT have this issue. Given that thwait will no longer be bundled when JRuby reaches 2.7 compatibility... perhaps this can be closed?
Environment Information
Example
Expected Behavior
No
report_on_exception
warning is raised.Actual Behavior
We get an unexpected log like:
NOTE:
Seems like there are plans to not include
thwait
by default to match Ruby 2.7 behavior: #6464We probably want this fixed for the JRuby version of them, however.
The text was updated successfully, but these errors were encountered: