Sized (original) (raw)
Doug Lea dl at cs.oswego.edu
Wed Nov 28 04:19:40 PST 2012
- Previous message: Sized
- Next message: Sized
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 11/27/12 19:50, Doug Lea wrote:
In other words, greater-than-int-sized collections are not a future possibility, but a reality that was a few years the subject of several collections bugfixes. That will also require stream bugfixes soon enough.
And to make this extra fun, the maximum array size you can create (for toArray etc) is less than Integer.MAX_VALUE. See the odd constructions strewn around collection implementations that try to cope with this, but must still throw exceptions when coping fails. This will be needed for stream methods as well, regardless of Size-related APIs.
-Doug
- Previous message: Sized
- Next message: Sized
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the lambda-libs-spec-observers mailing list