Skip to content

Fix included_modules method to not return wrapped modules#7303

Merged
enebo merged 1 commit intojruby:jruby-9.3from
evaniainbrooks:fix-included_modules
Aug 24, 2022
Merged

Fix included_modules method to not return wrapped modules#7303
enebo merged 1 commit intojruby:jruby-9.3from
evaniainbrooks:fix-included_modules

Conversation

@evaniainbrooks
Copy link
Contributor

I discovered this issue while investigating #7256

The included_modules method would sometimes include a wrapped module. With this change, the prepended module now shows up in this list, and not the anonymous/wrapped module (which looks to be just a JRuby implementation detail). included_modules now matches what CRuby returns for this case

@evaniainbrooks evaniainbrooks changed the base branch from jruby-9.3 to master August 19, 2022 16:44
@evaniainbrooks evaniainbrooks changed the base branch from master to jruby-9.3 August 19, 2022 16:44
@enebo enebo added this to the JRuby 9.3.8.0 milestone Aug 24, 2022
@enebo enebo merged commit 68e490b into jruby:jruby-9.3 Aug 24, 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.

2 participants