You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Luc Maisonobe <Lu...@free.fr> on 2010/08/01 17:09:33 UTC
[math] duplicate DimensionMismatchException
Hello,
It appeared to me a new DimensionMismatchException has been added in the
exception package. There was already a class with that name in the top
level package since 1.2.
Could the new class be renamed to avoid a name clash ?
Luc
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
Re: [math] duplicate DimensionMismatchException
Posted by Gilles Sadowski <gi...@harfang.homelinux.org>.
> It appeared to me a new DimensionMismatchException has been added in the
> exception package. There was already a class with that name in the top
> level package since 1.2.
>
> Could the new class be renamed to avoid a name clash ?
I named it the same on purpose: so that one just have to change the "import"
statement. Hopefully, one should never need to use them both in the same
file.
The old class should be deprecated (now) and removed (in 3.0). [IMO, it was
a mistake to create a checked exception in order to signify a precondition
violation.]
Gilles
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org