Details
-
Bug
-
Resolution: Fixed
-
P4
-
None
-
b147
Description
The signature of Stream.generate doesn't to use a wildcard (? extends) hence some programs are rejected even if they are valid.
The signature should be public static<T> Stream<T> generate(Supplier<? extends T> s).
see http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-July/034601.html
The signature should be public static<T> Stream<T> generate(Supplier<? extends T> s).
see http://mail.openjdk.java.net/pipermail/core-libs-dev/2015-July/034601.html
Attachments
Issue Links
- relates to
-
JDK-8152617 add missing wildcards to Optional or() and flatMap()
-
- Resolved
-
-
JDK-8170946 Stream.iterate() should allow covariant seed and UnaryOperator args
-
- Open
-