-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
8u25
-
x86
-
os_x
A DESCRIPTION OF THE PROBLEM :
Stream.reduce should also note that the binary operation needs to be commutative as well as associative. Consider a stream of 2 by 2 matrices using matrix multiplication. This is associative (and their is an identity) but if run from a parallel stream the answer could vary.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/
Stream.reduce should also note that the binary operation needs to be commutative as well as associative. Consider a stream of 2 by 2 matrices using matrix multiplication. This is associative (and their is an identity) but if run from a parallel stream the answer could vary.
URL OF FAULTY DOCUMENTATION :
https://docs.oracle.com/javase/8/docs/api/