Skip to content

Make sure Ruby exception does not provide itself as cause.#7869

Merged
enebo merged 1 commit intojruby:masterfrom
enebo:get_cause
Aug 1, 2023
Merged

Make sure Ruby exception does not provide itself as cause.#7869
enebo merged 1 commit intojruby:masterfrom
enebo:get_cause

Conversation

@enebo
Copy link
Member

@enebo enebo commented Jul 27, 2023

RubyException ends up getting called and it is used by RaiseException (which is a RuntimeException in Java). It seems like Ruby itself much less Java should have cause of an exception be itself. This should also prevent the Java exception from having the same condition?

This should fix #7861 but we shall see if anything complains or not in the expanded CI run.

RubyException ends up getting called and it is used by RaiseException
(which is a RuntimeException in Java).  It seems like Ruby itself
much less Java should have cause of an exception be itself.  This
should also prevent the Java exception from having the same
condition?
@enebo enebo added this to the JRuby 9.4.4.0 milestone Jul 27, 2023
@enebo enebo merged commit 4cd8ee1 into jruby:master Aug 1, 2023
@enebo enebo deleted the get_cause branch August 1, 2023 14:39
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.

org.jruby.RubyLoadError getCause returns itself

1 participant