harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Zhang" <zhanghuang...@gmail.com>
Subject Re: [classlib]strings externalization
Date Thu, 27 Jul 2006 17:21:58 GMT
On 7/27/06, Tim Ellison <t.p.ellison@gmail.com> wrote:
>
> Ilya Okomin wrote:
> > On 7/27/06, Tim Ellison <t.p.ellison@gmail.com> wrote:
> >> The other reason we will need some manual intervention is that there is
> >> plenty of code that throws exceptions without any message describing
> the
> >> problem, and of course the tooling won't help there.
> >
> > Tim, do you mean, that Exceptions without any messages supposed to be
> > initialized with some corresponding message describing the problem? I
> > thought only already existing in modules messages are to be considered.
> > Just want to dispel doubts.
>
> I see plenty of code going in to svn that simply throws a new
> IllegalArgumentException() or whatever.  It would be good if they had an
> externalized message to explain what the problem was -- i.e. throw new
> IllegalArgumentException("Parameter foobar should be less than 42") etc.


Agree. Meaningful message helps. But all exceptions defined in java.nio and
java.nio.channels only have a constructor without any parameter. :)
Seems sun is becoming lazy on this issue. :)

You might consider this a separate task to that of externalizing the
> existing messages, but depending on how 'manual' the externalization
> scan is for each module it may be worth doing both simultaneously.
>
> >> So once we have the basic framework in place for the message handling I
> >> think it will require a large manual effort to get all the strings that
> >> we want externalized properly.  Luckily it is not technically complex
> >> work and it is a task that we can easily do in parallel across the
> >> modules.
> >
> > Yep, I've chosen the same way to do.
>
>
> Cool -- did you get anywhere with the message handling framework
> 'template' code?
>
> Regards,
> Tim
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 
Andrew Zhang
China Software Development Lab, IBM

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message