commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <gil...@harfang.homelinux.org>
Subject Re: [Math] Usage of "NullPointerException"
Date Sat, 07 Aug 2010 08:45:23 GMT
> >There may be some cases where it makes sense to propagate NPEs
> >directly.  I don't see any in the code now, but I would not rule it
> >out for the future.  I am fine, however, dispensing with
> >MathRuntimeException.createNullPointerException (that's what I meant
> >by "wrapped NPE." Technically, you are right, the resultant NPE is
> >not really "wrapped," just specialized.)  Where we throw IAE today
> >with informative error message indicating which parameter was null,
> >I want to retain the error message.
> >
> 
> There are actually quite a few places were we propagate NPEs
> directly.  For example PolynomialFunction does this pretty much
> everywhere that the JavaDocs says that it throws a NPE.

So this must be changed. I'll file a report.

Gilles

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


Mime
View raw message