-
Sub-task
-
Resolution: Duplicate
-
P2
-
None
-
8
-
b97
-
Verified
Consider the following code:
LongStream.range(1, -1).boxed().spliterator().tryAdvance(null);
LongStream.range(1, -1).asDoubleStream().spliterator().tryAdvance((DoubleConsumer)null);
IntStream.range(1, -1).boxed().spliterator().tryAdvance(null);
IntStream.range(1, -1).asDoubleStream().spliterator().tryAdvance((DoubleConsumer)null);
IntStream.range(1, -1).asLongStream().spliterator().tryAdvance((LongConsumer)null);
The expected specified NullPointerException will not be thrown.
The following JCK tests will fail due to this issue:
api/java_util/stream/IntStream/index.html#Range[checkBoxed]
api/java_util/stream/IntStream/index.html#Range[checkDoubles]
api/java_util/stream/IntStream/index.html#Range[checkLongs]
api/java_util/stream/LongStream/index.html#Range[checkBoxed]
api/java_util/stream/LongStream/index.html#Range[checkDoubles]
LongStream.range(1, -1).boxed().spliterator().tryAdvance(null);
LongStream.range(1, -1).asDoubleStream().spliterator().tryAdvance((DoubleConsumer)null);
IntStream.range(1, -1).boxed().spliterator().tryAdvance(null);
IntStream.range(1, -1).asDoubleStream().spliterator().tryAdvance((DoubleConsumer)null);
IntStream.range(1, -1).asLongStream().spliterator().tryAdvance((LongConsumer)null);
The expected specified NullPointerException will not be thrown.
The following JCK tests will fail due to this issue:
api/java_util/stream/IntStream/index.html#Range[checkBoxed]
api/java_util/stream/IntStream/index.html#Range[checkDoubles]
api/java_util/stream/IntStream/index.html#Range[checkLongs]
api/java_util/stream/LongStream/index.html#Range[checkBoxed]
api/java_util/stream/LongStream/index.html#Range[checkDoubles]