You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Calls inside a ... method use the method's caller's keyword flags (regression in 10.1.3.0) #10115
JRuby 10.1.3.0 passes x: 2 to target as a positional hash:
ArgumentError: wrong number of arguments (given 2, expected 1)
target at repro.rb:1
forwarder at repro.rb:3
<main> at repro.rb:5
It looks like every call in the body of a ... method gets the keyword flags of the outer method's caller. Here forwarder is called with no keywords, so the call to target is also treated as having no keywords.
Impact
I'm reporting this because it breaks the current releases of dry-auto_inject, dry-types, dry-monads, and Hanami. This means you cannot run Hanami apps on 10.1.3.0, nor any app depending on those Dry libraries.
We can see this when running the dry-auto_inject test suite locally with JRuby 10.1.3.0. You'll see >50 failures, all with wrong number of arguments (given 3, expected 2). See dry-rb/dry-auto_inject#101.
For now I've prepared dry-rb/dry-auto_inject#102 that works around this issue, but I wanted to make sure we could get this report shared upstream to you as well :)
Activity
timriley commentedon Nov 18, 2026
I see this is a dup of #10026. I'll close this one now, sorry for the extra noise.
(...)method raises ArgumentError #10026