Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Struct#values should return an array which is independent of the struct #5375

merged 1 commit into from
Oct 19, 2018


Copy link

@nomadium nomadium commented Oct 18, 2018

Struct#to_a and Struct#values should return an Array which is independent to the Struct. So subsequent modifications to the struct should not be visible in a previously retrieved values array. In MRI a new Array is created at each call to #values or #to_a.

Fixes #5372.

@kares kares added this to the JRuby milestone Oct 19, 2018
@kares kares merged commit d67173f into jruby:master Oct 19, 2018
@nomadium nomadium deleted the fix-5372-struct-issue branch November 25, 2018 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants