-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@AutoClose
cannot invoke methods due to strict encapsulation with the module system
#3684
Comments
Thanks for bringing this to our attention, @bjmi! 👍 I'm very familiar with Spring's So, it looks like we probably need that in JUnit as well. I'll look into it! |
@AutoClose
cannot invoke inaccessible methods
@AutoClose
cannot invoke inaccessible methods@AutoClose
cannot invoke methods due to strict encapsulation with the module system
Please note that I have removed the milestone assignment since |
Just one consideration: is it sufficient to only search for a corresponding interface method? Abstract base classes e.g. Shouldn't they also be supported? |
Hi @bjmi, That's a valid question, so thanks for bringing it up. I suppose that one might ideally want to find the first matching method which is declared in a However, my primary goal was to support the most common use cases for
In that regard, I think we have the major use cases covered currently. However, if people start complaining about JUnit not being able to invoke Cheers, Sam |
Running following test
results in:
In a nutshell
Some research revealed:
OpenJDK 21.0.2 for Windows
JUnit 5.11.0-SNAPSHOT
The text was updated successfully, but these errors were encountered: