Skip to content

Skip the patch for moderm JRuby vers#2413

Open
ryudoawaru wants to merge 1 commit into
rsim:release70from
ryudoawaru:skip-legacy-jruby-patch_703
Open

Skip the patch for moderm JRuby vers#2413
ryudoawaru wants to merge 1 commit into
rsim:release70from
ryudoawaru:skip-legacy-jruby-patch_703

Conversation

@ryudoawaru
Copy link
Copy Markdown
Contributor

@ryudoawaru ryudoawaru commented Oct 7, 2024

By the comment here, I believe it's not necessary to apply the patch for moderm JRuby versions.

@rammpeter
Copy link
Copy Markdown
Contributor

It would be very helpful for JRuby users to complete this simple improvement by merging the PR.
Just now it raises additional trouble while making oracle_enhanced tests functional with JRuby 10.0.2.0

yahonda added a commit to yahonda/oracle-enhanced that referenced this pull request Apr 8, 2026
JRuby before 9.3.0.0 does not define ObjectSpace::WeakMap#values
natively (jruby/jruby#6267). Patch it using JRuby's field_reader to
access the underlying Java map. Skip the patch when #values is already
defined (JRuby 9.3.0.0 or higher via jruby/jruby#6683).

Based on the approaches explored in rsim#2360 and
rsim#2413, but guards with method_defined?(:values)
instead of a version check so the workaround is skipped automatically
once JRuby provides the method natively.

Co-Authored-By: Ryudo Awaru <ryudoawaru@gmail.com>
Co-Authored-By: Thomas Steinhausen <27787+iaddict@users.noreply.github.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

2 participants