-
Bug
-
Resolution: Fixed
-
P3
-
8, 9
-
b47
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084130 | emb-9 | Chris Hegarty | P3 | Resolved | Fixed | team |
Many of the Collectors defined in java.util.stream.Collectors, that accumulate, group, etc, elements into a Collection, and do not accept a Collection supplier, come with a caveat on the Collection they create, along the lines of, "There are no guarantees on the type, mutability, serializability, or thread-safety of the ... returned".
This caveat should be applied to all Collectors that create such Collections. This appears to be a minor oversight in the original spec.
This caveat should be applied to all Collectors that create such Collections. This appears to be a minor oversight in the original spec.
- backported by
-
JDK-8084130 Add mutability, serializability, and thread-safety, caveat to all Collectors that do not accept a Collection supplier
-
- Resolved
-