Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 49726 invoked from network); 18 Apr 2006 03:58:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2006 03:58:52 -0000 Received: (qmail 12759 invoked by uid 500); 18 Apr 2006 03:58:48 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 12699 invoked by uid 500); 18 Apr 2006 03:58:48 -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 12687 invoked by uid 99); 18 Apr 2006 03:58:48 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 20:58:48 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 202.81.18.152 is neither permitted nor denied by domain of paulex.yang@gmail.com) Received: from [202.81.18.152] (HELO ausmtp04.au.ibm.com) (202.81.18.152) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2006 20:58:47 -0700 Received: from sd0208e0.au.ibm.com (d23rh904.au.ibm.com [202.81.18.202]) by ausmtp04.au.ibm.com (8.13.6/8.13.5) with ESMTP id k3I47dbm040682 for ; Tue, 18 Apr 2006 14:07:41 +1000 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.250.244]) by sd0208e0.au.ibm.com (8.12.10/NCO/VER6.8) with ESMTP id k3I41Epe113092 for ; Tue, 18 Apr 2006 14:01:20 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.12.11/8.13.3) with ESMTP id k3I3vsRT031766 for ; Tue, 18 Apr 2006 13:57:54 +1000 Received: from d23m0011.cn.ibm.com (d23m0011.cn.ibm.com [9.181.32.74]) by d23av03.au.ibm.com (8.12.11/8.12.11) with ESMTP id k3I3vrWN031727 for ; Tue, 18 Apr 2006 13:57:54 +1000 Received: from [127.0.0.1] ([9.181.106.208]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.53HF294) with ESMTP id 2006041811555860-7540 ; Tue, 18 Apr 2006 11:55:58 +0800 Message-ID: <44446322.1020507@gmail.com> Date: Tue, 18 Apr 2006 11:55:14 +0800 From: Paulex Yang User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: should strings in exceptions match the reference implementation? References: <011b01c660d5$2e802b50$1101a8c0@OFFICEDESKTOP> <44442618.5040403@pobox.com> <444449B3.3090509@gmail.com> <44444CF7.8010404@pobox.com> In-Reply-To: <44444CF7.8010404@pobox.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.53HF294 | January 28, 2005) at 18/04/2006 11:55:58, Serialize by Router on D23M0011/23/M/IBM(Release 6.53HF294 | January 28, 2005) at 18/04/2006 11:57:53, Serialize complete at 18/04/2006 11:57:53 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 Geir Magnusson Jr wrote: > > > Paulex Yang wrote: >> Geir Magnusson Jr wrote: >>> >>> >>> Nathan Beyer wrote: >>>> This seems overly excessive and I'm fairly sure that other JREs >>>> don't match >>>> every message of every exception in the RI. >>> >>> Really? Every other JRE uses the classlibrary from sun. They would >>> have the same messages, wouldn't they? >> I'm sure not *every*, at least GNU classpath has no chance to use >> classlib from Sun ;-) . > > It's not a JRE :) > > But BEA, IBM and Sun use the library from Sun. I'd bet Apple does too. > As far as I know, that's about it for maintream JRE/JDKs... OK, AFAIK as a user, IBM JDK includes much class lib implementation from Sun, but not all, because you can see com.ibm.*** randomly from the stack trace:). Anyway, it's not the key point, the key point is the what is our baseline considering "compatibility", I assume the baseline is to pass TCK and not to break existing applications. While I have no any idea about TCK, I believe few application depends on message, so I see no reason so far why we must pay great effort (even greater than exception type compatibility I think) to have same message with RI. And legal issue stand out here yet another time.... > > Good question though - what does GNU Classpath do? > > geir > >>> >>> geir >>> >>>> >>>> I'm not opposed to matching messages to help consistency and >>>> debugging, but >>>> I just don't want it to be a dictate for development and testing. >>>> The only >>>> exception, no pun intended, to this would be if the specification >>>> defines a >>>> format for the message and thus making it an explicit part of the API. >>>> >>>>> -----Original Message----- >>>>> From: Mark Hindess [mailto:mark.hindess@googlemail.com] >>>>> Sent: Saturday, April 15, 2006 2:44 PM >>>>> To: Harmony Dev >>>>> Subject: should strings in exceptions match the reference >>>>> implementation? >>>>> >>>>> Another thing that came up when looking at PatternSyntaxExceptionTest >>>>> (HARMONY-352) was that the test was testing for the strings in >>>>> exceptions. Since these were testing for strings not in the >>>>> exceptions >>>>> thrown by the new implementation (nor by the reference >>>>> implementation), I thought about removing the tests and just ignoring >>>>> the strings. But then... >>>>> >>>>> I remembered that two days ago I had solved a problem with tests >>>>> failing on our windows build machine [0], by doing a google search >>>>> for >>>>> the exact string in the exception that was being thrown. It would >>>>> have been much harder to solve if the string didn't match the string >>>>> thrown by the reference implementation. So, I think we should try to >>>>> match strings in exceptions because it will help our users when >>>>> trying >>>>> to debug problems. Currently we don't in very many cases. >>>>> >>>>> What do other people think? >>>>> >>>>> Obviously we will have to match them if we are going to test for them >>>>> in our API tests or they wont pass when run against a reference >>>>> implementation. >>>>> >>>>> My patch for the PatternSyntaxExceptionTest has the string tests with >>>>> the expected values set to the values from the exceptions trhown by >>>>> the RI. But I've commented them out since harmony strings don't >>>>> currently match and since the strings probably should have different >>>>> line endings on different platforms. >>>>> >>>>> Regards, >>>>> Mark. >>>>> >>>>> [0] SystemRoot not being set in the environment when called from my >>>>> ant task. >>>>> >>>>> -- >>>>> Mark Hindess >>>>> IBM Java Technology Centre, UK. >>>>> >>>>> --------------------------------------------------------------------- >>>>> 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 >>>> >>>> >>>> --------------------------------------------------------------------- >>>> 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 >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> 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 >>> >>> >> >> > > --------------------------------------------------------------------- > 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 > > -- Paulex Yang 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