Skip to content

Conversation

@kares
Copy link
Member

@kares kares commented Sep 30, 2025

the first commit is a reproducer for the regression,

second is an attempt to fix but there are potential other approaches as well
(e.g. use an IdentityWeakHashMap as a backing collection for the RubyClassSet to make sure we do not rely on RubyModule#hashCode calls which now might be dynamic),

the proposed fix here restores the previous RubyModule#hashCode behavior for Java proxies.

@kares kares added this to the JRuby 10.0.3.0 milestone Sep 30, 2025
@kares kares linked an issue Sep 30, 2025 that may be closed by this pull request
@kares kares force-pushed the ji-hash-proxy-static branch from 613f386 to eb1c0b2 Compare October 1, 2025 08:25
@kares kares marked this pull request as ready for review October 1, 2025 11:56
@kares kares requested a review from headius October 14, 2025 11:00
@headius headius merged commit 0d0a59d into jruby:master Oct 15, 2025
440 of 450 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

can not use Java class with static hash() method

2 participants