isParallel of sequential representation of parallel Stream

elena votchennikova elena.votchennikova at oracle.com
Thu Nov 29 08:29:31 PST 2012


I use promoted build 64, from here: http://jdk8.java.net/lambda/


Lena


On 29.11.2012 20:01, Paul Sandoz wrote:
> On Nov 29, 2012, at 4:45 PM, elena votchennikova<elena.votchennikova at oracle.com>  wrote:
>
>> Hi,
>>
>> method isParallel() returns true, if I call it from sequential
>> representation of parallel Stream.
>>
>> For example,
>> Arrays.parallel(new Object[]{1, 2, 3}).sequential().isParallel()
>>
>> returns true.
>> I think it should return false, isn't it?
>>
> What source revision did build from?
>
> Should now be fixed in the tip.
>
> Paul.
>


More information about the lambda-dev mailing list