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
JRuby seems to use the above mentioned method in code, which will break at least on any remotely modern Oracle JDKs (as well as hide the original exception).
I don't have the JRuby version used in the original problem, but it doesn't matter. Even the current codebase contains a call to Thread.stop(Throwable). While Thread.stop() has been deprecated, it still works, whereas Thread.stop(Throwable) throws an UnsupportedOperationException starting from JDK 1.8.
Ahh, nice find. I didn't realize they'd finally started to make this really deprecated.
The only instance I could find was for propagating a Thread.abort_on_exception to the main thread. I'm testing a change to just use the existing thread event logic for that. It will be less guaranteed to fire, but no more so than for other cross-thread exception raises.
JRuby seems to use the above mentioned method in code, which will break at least on any remotely modern Oracle JDKs (as well as hide the original exception).
Originally encountered here http://stackoverflow.com/questions/31870750/logstash-unexpectedly-stopped/31872698
The current version of RubyThread still seems to call it in certain circumstances.
The text was updated successfully, but these errors were encountered: