commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc Maisonobe <Luc.Maison...@free.fr>
Subject Re: [math] Double.NaN or NotStrictlyPositiveException?
Date Mon, 20 Aug 2012 07:25:46 GMT
Le 20/08/2012 05:51, Sébastien Brisard a écrit :
> Hi,
> the current implementation of Gamma.logGamma(double) fails silently when
> the argument is not strictly positive, returning Double.NaN.
> Previous discussions on this ML show that we all agree (do we?) that
> throwing an exception is preferrable. Since I'm reimplementing this
> function, I propose to change this behaviour. Do you think that would be
> allowed in 3.1?

Yes, I think this kind of change can be introduced in a minro revision.

Luc

> 
> I do not think it breaks binary compatibility. Neither does it break the
> contract of this method, since (quite fortunately) its behavior was not
> specified in the Javadoc!
> 
> Thanks for your suggestions,
> Sébastien
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message