-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
JUnit test fails with Gradle 7/Java 16 #16820
Comments
@hrstoyanov can you please:
|
Yes, it used to work with Gradle 6.8.3 and Java 15.0.2. I also shared the JUnit test code above, see Context |
Thanks for confirming @hrstoyanov and sorry that I missed the "Context" part. I think it's enough for us to investigate here. Although, in general, a complete small build with build file and test would be appreciated. Then it is much easier for us to reproduce and make sure we have exactly the same setup as you. |
also, I googled this issue and some people pointed to "--enable-preview" jvm option, so I tried all sorts of test configurations like:
Nothing worked. |
I am not able to reproduce this problem. If you could share a minimal project (with settings and build files) that exhibits the said behavior - this would help a lot. |
Sorry .. I figured out it is my issue and not Gradle's. Closing it. |
@hrstoyanov how did you fix it? |
@hrstoyanov I'd like to know how you solved it as well. |
Expected Behavior
JUnit test run with typical results.
Current Behavior
I get strange jUnit failure:
Context
Here is the test file:
Steps to Reproduce
Your Environment
Build scan URL:
https://gradle.com/s/zjltnkaconw4e
The text was updated successfully, but these errors were encountered: