References to non-existing methods in java.util.stream comments
Paul Sandoz
paul.sandoz at oracle.com
Tue Jul 28 11:19:23 UTC 2015
On 28 Jul 2015, at 10:48, Tagir F. Valeev <amaembo at gmail.com> wrote:
> Hello!
>
> Although it's not the part of public API, there are references to
> non-existing methods in SliceOps.java and Streams.java:
>
> http://hg.openjdk.java.net/jdk9/dev/jdk/file/f160dec9a350/src/java.base/share/classes/java/util/stream/SliceOps.java#l141
> // @@@ OOMEs will occur for LongStream.longs().filter(i -> true).limit(n)
>
> http://hg.openjdk.java.net/jdk9/dev/jdk/file/f160dec9a350/src/java.base/share/classes/java/util/stream/Streams.java#l283
> * <p>This is optimized for cases such as LongStream.longs() that is ...
>
> There's no method like LongStream.longs().
>
> http://hg.openjdk.java.net/jdk9/dev/jdk/file/f160dec9a350/src/java.base/share/classes/java/util/stream/Streams.java#l159
> * <p>This is optimized for cases such as IntStream.ints() that is ...
>
> There's no method like IntStream.ints().
>
> Probably these comments should be changed to avoid confusion.
>
Thanks. The comments should be updated to refer to the Long/IntStream.range(0, Long/Integer.MAX_VALUE).
Paul.
> With best regards,
> Tagir Valeev.
>
More information about the core-libs-dev
mailing list