paulbutcher / ScalaMock

Native Scala mocking framework
http://scalamock.org/
MIT License
501 stars 98 forks source link

don't try to override members that are privateWithin anything #521

Closed martijnhoekstra closed 1 month ago

martijnhoekstra commented 1 month ago

Pull Request Checklist

Purpose

When a class have package-private members, we can't override those. This is the case among other things for default access java methods. Check privateWithin to determine whether we can override.

Background Context

References

Are there any relevant issues / PRs / mailing lists discussions?

goshacodes commented 1 month ago

Hi, thank you for your contribution, this one is ready to merge