Skip to content

Also include/prepend into existing include hiers#7377

Merged
headius merged 2 commits intojruby:masterfrom
headius:late_include_prepend
Sep 27, 2022
Merged

Also include/prepend into existing include hiers#7377
headius merged 2 commits intojruby:masterfrom
headius:late_include_prepend

Conversation

@headius
Copy link
Member

@headius headius commented Sep 23, 2022

When including or prepending a module Y into a module X, we must also visit hierarchies that include X and add Y to them so they reflect the change.

When including or prepending a module Y into a module X, we must
also visit hierarchies that include X and add Y to them so they
reflect the change.
@headius headius added this to the JRuby 9.4.0.0 milestone Sep 23, 2022
@headius headius changed the title Also include/prepend into existing include hiers. Also include/prepend into existing include hiers Sep 23, 2022
@headius
Copy link
Member Author

headius commented Sep 27, 2022

I fixed the only failures that were actually related to this, in our own test_method_cache where we expected future includes would not be honored by existing classes.

@headius headius merged commit f46d592 into jruby:master Sep 27, 2022
@headius headius deleted the late_include_prepend branch September 27, 2022 17:59
@headius headius mentioned this pull request Sep 28, 2022
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.

1 participant