-
-
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
warning: unknown enum constant Status.STABLE while compiling org.junit.jupiter.api.Test using Java9 #1104
Comments
Include module See Gradle example here: https://github.com/junit-team/junit5-samples/blob/master/junit5-java9-engine/build.gradle#L9 |
@sormuras thanks for the prompt reply.
|
See https://youtrack.jetbrains.com/issue/IDEA-178888 for details. |
Closing this issue as invalid. |
I still got this warning. Tried 5.0.2 and 5.1.0-M1. Any ideas? |
You got this warning without including apiguardian, right? It will become a mandatory dependency again starting in 5.1.0-RC1. |
Wait what? Why? And Why didn't Gradle/Maven automatically pick it up? |
That's a long story. In short, it is declared as an |
Oh, so I won't need to declare the dependency myself? Looking forward to 5.1.0-RC1 then! |
Right. It will then be an automatic transitive dependency. |
I have |
|
I don't even know (yet) if the problem is due to junit. I stated to get the error after I added I was able to remove the warnings by adding |
Overview
Bug report. Using the
junit-jupiter-api-5.0.0
with java version"9" (build 9+181)
in IntelliJ2017.2.5
(if that might matter)Steps to reproduce:-
junit-jupiter-api-5.0.0.jar
]opentest4j-1.0.0.jar
along with to the lib/ folder.javac --module-path lib -d "target" $(find src -name "*.java")
Results into warnings post the compilation of the classes as -
Deliverables
On a side note, it would be good to know what exactly is causing these warnings to occur. Since, if I comment out the code using JUnit and execute the same command, things seems to be working fine.
The text was updated successfully, but these errors were encountered: