Skip to content

Match CRuby digest equality coercion on JRuby - #150

Merged
olleolleolle merged 1 commit into
ruby:masterfrom
OskarEichler:codex/jruby-equality-coercion
Oct 6, 2026
Merged

olleolleolle merged 1 commit into
ruby:masterfrom
OskarEichler:codex/jruby-equality-coercion

Conversation

@OskarEichler

Copy link
Copy Markdown
Contributor

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
@headius

headius commented Oct 5, 2026

Copy link
Copy Markdown

@olleolleolle
olleolleolle merged commit 2b652c8 into ruby:master Oct 6, 2026
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.

3 participants