RFR 8169808 Stream returning methods should specify if they are late binding (original) (raw)

Doug Lea dl at cs.oswego.edu
Wed Nov 23 14:14:30 UTC 2016


On 11/22/2016 08:33 PM, Martin Buchholz wrote:

PriorityBlockingQueue has a late-binding-style, snapshot spliterator that does not report IMMUTABLE. It is immutable ... after the first access! Should we add IMMUTABLE?

Probably not. This might overly constrain future improvements; for example, someday replacing with some linked structure. Arguably, if so, we could just change the reported characteristics, but that could be surprising to users, and possibly lead to subtle user bugs.

-Doug



More information about the core-libs-dev mailing list