[concurrency-interest] forkjoin.ParallelArray and friends

Doug Lea dl at cs.oswego.edu
Wed Aug 29 07:53:03 EDT 2007


Rob Griffin wrote:
> Doug,
> 
> Are you aware that unlike the Integer and Long MIN_VALUE constants
> Double.MIN_VALUE is a positive number?
> 
> I think that -Double.MAX_VALUE is the value that should be used.
> 

Thanks!! I confess to once knowing this but forgetting it.
Will fix. Along these lines,  Ops.NaturalDoubleComparator
does reflect a related oddity by using Double.compare
http://java.sun.com/javase/6/docs/api/java/lang/Double.html#compare(double,%20double)

-Doug



More information about the Concurrency-interest mailing list