Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.8.6
-
None
Description
Currently the ObjectRange iterator is reliant on the size of the range.
If the range is made up of BigInteger or BigDecimal, would it be possible to safely change this to call increment or decrement on a current internal value until it reaches its destination?
The problem is exhibited by:
assert [] == (1.0G..2147483648.0G).iterator().take( 2 ).collect()
Where I would expect [1, 2]
The problem is that size (being an int) for this range is -2147483648