Menu

#406 JDK-8223933: Clarify specification of Stream.distinct()

on hold
open
2019-06-17
2019-06-17
No

"Stream.distinct() sometimes allows duplicates when the stream is sorted"

https://bugs.openjdk.java.net/browse/JDK-8223933

The specification for distinct() should specify that if the input stream is sorted, the comparison method used for sorting must be consistent with equals.

Discussion

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.