Slightly deceiving error message on Collectors.toMap
Peter Levart
peter.levart at gmail.com
Thu Apr 17 16:04:34 UTC 2014
On 04/17/2014 05:53 PM, Michael Nascimento wrote:
> On Thu, Apr 17, 2014 at 12:50 PM, Peter Levart <peter.levart at gmail.com> wrote:
>> That's confusing too. It's not a problem with duplicate values but with
>> duplicate keys. Maybe:
>>
>> Duplicate key, mapped to value %s
>>
>> Regards, Peter
> Actually it's mapped to two values, so printing one won't help much to
> find the root cause :-S
But the two values are the same (if the key->value mapper function *is*
a function), aren't they?
Regards, Peter
>
> I'm about to have lunch and then I'll file this bug, we can discuss a
> better message there.
>
> Regards,
> Michael
More information about the lambda-dev
mailing list