Re: [Math] Method "getMessage(Locale loc)" in "MathIllegalArgumentException"

2010-08-03 Thread Gilles Sadowski
> > 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. > > More precisely it allows to choose the display language at run time and even > to change it at run time. > It is the explici

Re: [Math] Method "getMessage(Locale loc)" in "MathIllegalArgumentException"

2010-08-03 Thread luc . maisonobe
- "Gilles Sadowski" a écrit : > Hi. > > This method: > ---CUT--- > public String getMessage(final Locale locale) { > // ... > } > ---CUT--- > was added in "MathIllegalArgumentException". > I don't like it because it extends the Java standard interface for > getting > localized messa

[Math] Method "getMessage(Locale loc)" in "MathIllegalArgumentException"

2010-08-03 Thread Gilles Sadowski
Hi. This method: ---CUT--- public String getMessage(final Locale locale) { // ... } ---CUT--- 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 getLocalizedMessage