Skip to content

[fix] rename RubyHash#set(get) to avoid collision#9459

Merged
headius merged 1 commit into
jruby:masterfrom
kares:fix-map-hash-regression
Jun 13, 2026
Merged

[fix] rename RubyHash#set(get) to avoid collision#9459
headius merged 1 commit into
jruby:masterfrom
kares:fix-map-hash-regression

Conversation

@kares

@kares kares commented May 23, 2026

Copy link
Copy Markdown
Member

Groovy's map['foo'] = 10 "set-property" protocol would end up picking up the set(int, xxx) as the setter instead of doing a Map#put

hopefully, closing #9393

Groovy's `map['foo'] = 10` "set-property" protocol would end up picking
up the `set(int, xxx)` as the setter instead of doing a `Map#put`
@kares kares added this to the JRuby 10.1.1.0 milestone May 23, 2026

@headius headius left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These were new methods in 10.1 and never exposed publicly so this is a good clean fix. Unfortunate that Groovy exposes protected methods through its set-property protocol, but there's nothing we can do about that.

@headius
headius merged commit 4a25c61 into jruby:master Jun 13, 2026
111 of 113 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.

[10.1.0.0] Java::JavaLang::IllegalArgumentException: argument type mismatch

2 participants