Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 5169 invoked from network); 28 Jul 2006 05:54:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jul 2006 05:54:00 -0000 Received: (qmail 51387 invoked by uid 500); 28 Jul 2006 05:53:56 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 51337 invoked by uid 500); 28 Jul 2006 05:53:56 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 51326 invoked by uid 99); 28 Jul 2006 05:53:56 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2006 22:53:56 -0700 X-ASF-Spam-Status: No, hits=1.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.155 is neither permitted nor denied by domain of firepure@gmail.com) Received: from [202.81.18.155] (HELO ausmtp06.au.ibm.com) (202.81.18.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jul 2006 22:53:55 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp06.au.ibm.com (8.13.6/8.13.6) with ESMTP id k6S5t8If7880928 for ; Fri, 28 Jul 2006 15:55:08 +1000 Received: from d23av01.au.ibm.com (d23av01.au.ibm.com [9.190.250.242]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k6S5upnM202576 for ; Fri, 28 Jul 2006 15:56:52 +1000 Received: from d23av01.au.ibm.com (loopback [127.0.0.1]) by d23av01.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k6S5rSbd000749 for ; Fri, 28 Jul 2006 15:53:28 +1000 Received: from d23m0011.cn.ibm.com ([9.181.32.74]) by d23av01.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k6S5rPBN031959 for ; Fri, 28 Jul 2006 15:53:26 +1000 Received: from [9.181.107.166] ([9.181.107.166]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006072813524206-3210 ; Fri, 28 Jul 2006 13:52:42 +0800 Message-ID: <44C9A631.1080404@gmail.com> Date: Fri, 28 Jul 2006 13:52:49 +0800 From: "Jimmy, Jing Lv" User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib]strings externalization References: <44C8AE2A.8000807@gmail.com> <44C8BB94.5030300@gmail.com> <4d0b24970607271021p1804775apc9b944d3a154a6fd@mail.gmail.com> In-Reply-To: <4d0b24970607271021p1804775apc9b944d3a154a6fd@mail.gmail.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 28/07/2006 13:52:42, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 28/07/2006 13:53:26, Serialize complete at 28/07/2006 13:53:26 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Andrew Zhang wrote: > On 7/27/06, Tim Ellison wrote: >> >> Ilya Okomin wrote: >> > On 7/27/06, Tim Ellison 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. :) > :) Rather call them "clever" than "lazy" in my mind, as an IllegalArgumentException can enough detail for user to know what is wrong (and javadoc also offer some information). Only some exception, like IOException, may need more detail for its cause. After all, now Harmony can use RI's error message, so it is no longer necessary to rack our brains to write error message. :) > 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 >> >> > > -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM --------------------------------------------------------------------- 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