commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gilles Sadowski <>
Subject [Math] Method "getMessage(Locale loc)" in "MathIllegalArgumentException"
Date Tue, 03 Aug 2010 10:18:28 GMT

This method:
  public String getMessage(final Locale locale) {
    // ...
was added in "MathIllegalArgumentException".
I don't like it because it extends the Java standard interface for getting
localized message strings. One should use the standard
when the localized message is wanted.
The above method makes it look like CM is providing ways to make a
"patchwork" of messages in several languages at the discretion of the
component builders. Only the application developer should be able to define
the language to use for displaying message.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message