| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
When passing empty kwrest into a method, `hasKeyword` will be true but there will not actually be any keyword hash in the argument list. We need to also check for "empty" keywords before proceeding to use any incoming kwargs hash. Fixes jruby#9214
This expands the fix from jruby#9215 to Struct and creats a new utility method for checking that keywords were passed AND were non-empty. Fixes jruby#9224.
Upgrades JRuby CI builds from 10.0 to 10.0.4.0 and setup-ruby from v1.288.0 to v1.295.0 across all workflow files. JRuby patches updated for 10.0.4.0 compatibility: - Remove the `< 10.0.4.0` version gate so patches remain active. - Remove Bug 1 (Data.new splat forwarding) — fixed upstream in 10.0.4.0 (jruby/jruby#9215, jruby/jruby#9225). - Keep Bug 2 (Data#to_h/deconstruct on subclasses) — still needed, now applied via a Data.define hook since JRuby 10.0.4.0 defines to_h directly on each Data.define subclass. - Work around a new JRuby 10.0.4.0 bug where `include`-ing a module in a Data.define block causes subclass instances to have nil fields in certain call patterns. Fix by defining instance methods directly in the Data.define block instead of using `include InstanceMethods`.
* Upgrade to JRuby 10.0.4.0 and setup-ruby v1.295.0 Upgrades JRuby CI builds from 10.0 to 10.0.4.0 and setup-ruby from v1.288.0 to v1.295.0 across all workflow files. JRuby patches updated for 10.0.4.0 compatibility: - Remove the `< 10.0.4.0` version gate so patches remain active. - Remove Bug 1 (Data.new splat forwarding) — fixed upstream in 10.0.4.0 (jruby/jruby#9215, jruby/jruby#9225). - Keep Bug 2 (Data#to_h/deconstruct on subclasses) — still needed, now applied via a Data.define hook since JRuby 10.0.4.0 defines to_h directly on each Data.define subclass. - Work around a new JRuby 10.0.4.0 bug where `include`-ing a module in a Data.define block causes subclass instances to have nil fields in certain call patterns. Fix by defining instance methods directly in the Data.define block instead of using `include InstanceMethods`. * remove specific version pin * add jruby issue number * remove unneeded jruby_patches file and unused module InstanceMethods * remove require deleted jruby patch file
| Back | FazBrowse Home | New Git URL |
When passing empty kwrest into a method, hasKeyword will be true but there will not actually be any keyword hash in the argument list. We need to also check for "empty" keywords before proceeding to use any incoming kwargs hash.
Fixes #9214