Environment Information
- JRuby 9.3.4.0
jruby:9.3.4.0-jre11 docker image
Expected Behavior
Here is an example of how CRuby behaves (2.7.5):

As we can see, method visibility changed, but behavior did not.
Actual Behavior
Here is what happens for the same example on JRuby:

Here, the behavior of the method unexpectedly changed after it was made public, preferring the signature of the first module that was overridden by the signature of the second.