-
Notifications
You must be signed in to change notification settings - Fork 376
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
Matchers.anyOf: inference variable has incompatible bounds with Java >8 #256
Comments
Even after applying #257, building hamcrest with OpenJDK 12.0.1 fails with
|
The intention was to make it possible to use anyOf from Java 11 code and not to make Hamcrest compilable with Java 11. |
Gentoo has a patch making it compile even with |
The following code sample works with OpenJDK 8 but does not compile with OpenJDK 11:
Compiling with Java 11 fails with
If the first argument of the Matchers.anyOf methods would be changed from Matcher to Matcher<? super T> (like in Matchers.allOf), it would work.
The text was updated successfully, but these errors were encountered: