Skip to content

Match CRuby digest equality coercion on JRuby - #150

Open
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/jruby-equality-coercion
Open

Match CRuby digest equality coercion on JRuby#150
OskarEichler wants to merge 1 commit into
ruby:masterfrom
OskarEichler:codex/jruby-equality-coercion

Conversation

@OskarEichler

Copy link
Copy Markdown

Uses checkStringType for non-digest equality operands on JRuby, matching CRuby: plain objects compare false, valid to_str coercions compare normally, and invalid to_str results still raise TypeError.

Verified on JRuby 10.0.6 / Java 21 with focused parity models; the CRuby suite remains 144 tests / 298 assertions green.

@OskarEichler
OskarEichler requested a review from knu as a code owner August 29, 2026 20: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.

1 participant