GROOVY-7721: Static type checking fails when compiling against a Java interface call
Arrays is also covariants in java, so they should be also compared.
Can't find exact documentation, but JLS 18.104.22.168 says:
â Otherwise, if all the maximally specific methods are abstract or default, and
the signatures of all of the maximally specific methods have the same erasure
(Â§4.6), then the most specific method is chosen arbitrarily among the subset
of the maximally specific methods that have the most specific return type.
You can merge this pull request into a Git repository by running: