Slightly deceiving error message on Collectors.toMap

Michael Nascimento misterm at gmail.com
Thu Apr 17 15:53:54 UTC 2014


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

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