Skip to content

Ignore empty kwrest in Data subtypes' constructors#9215

Draft
headius wants to merge 1 commit intojruby:masterfrom
headius:data_new_empty_kwrest
Draft

Ignore empty kwrest in Data subtypes' constructors#9215
headius wants to merge 1 commit intojruby:masterfrom
headius:data_new_empty_kwrest

Conversation

@headius
Copy link
Member

@headius headius commented Feb 4, 2026

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

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
@headius headius force-pushed the data_new_empty_kwrest branch from 3da9634 to 7cccb7e Compare February 5, 2026 04:03
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.

Data.define single-attribute class rejects positional arguments

1 participant