Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 28643 invoked from network); 7 Jul 2006 17:30:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jul 2006 17:30:27 -0000 Received: (qmail 973 invoked by uid 500); 7 Jul 2006 17:30:16 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 860 invoked by uid 500); 7 Jul 2006 17:30:16 -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 783 invoked by uid 99); 7 Jul 2006 17:30:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 10:30:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [192.55.52.88] (HELO fmsmga101-1.fm.intel.com) (192.55.52.88) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Jul 2006 10:30:07 -0700 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101-1.fm.intel.com with ESMTP; 07 Jul 2006 10:29:20 -0700 Received: from orsmsx334.jf.intel.com (HELO orsmsx334.amr.corp.intel.com) ([10.22.226.45]) by fmsmga001.fm.intel.com with ESMTP; 07 Jul 2006 10:29:18 -0700 X-IronPort-AV: i="4.06,218,1149490800"; d="scan'208"; a="94737042:sNHT924560511" Received: from orsmsx419.amr.corp.intel.com ([10.22.226.88]) by orsmsx334.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 7 Jul 2006 10:29:13 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Re: [classlib] compatibility of toString Date: Fri, 7 Jul 2006 10:29:12 -0700 Message-ID: <509223F0BF55E74FA1247D17207E7A0C0CC817@orsmsx419.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: [classlib] compatibility of toString Thread-Index: Acah3Y9saLesjLwOSAqgYLAPJ2QuYwADMBHQ From: "Magnusson, Geir" To: X-OriginalArrivalTime: 07 Jul 2006 17:29:13.0188 (UTC) FILETIME=[DD2EAA40:01C6A1EA] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N > -----Original Message----- > From: Alex Blewitt [mailto:alex.blewitt@gmail.com]=20 > Sent: Friday, July 07, 2006 11:52 AM > To: harmony-dev@incubator.apache.org; geir@pobox.com > Subject: Re: Re: [classlib] compatibility of toString >=20 > On 06/07/06, Geir Magnusson Jr wrote: > > > > Alex Blewitt wrote: > > > IMNSHO I don't think we should by default copy the toString() > > > behaviour from the RI, unless mandated by the spec in JavaDoc. > > > > Ok. Good rant, and I agree with it, but I still don't see=20 > a reason here > > why we shouldn't, other than to .... teach people a lesson? >=20 > If people are relying on one implementation that's undocumented > behaviour, then it's bad code. It may well fail on any other system > (inc. embedded systems, or other OS, or even between different > versions). No kidding. Welcome to the real world :) People do all sorts of stupid things. >=20 > But the real reason is one of defense; how can you say that you've > implemented a clean-room version of the code from the spec, when all > the toString() results are identical with a proprietary implementation > that you have no way of knowing what the result should be, except by > running the propetary version to find out? Obviously, some cases it > will be obvious (e.g. we can guess what a java.net.URL looks like) but > in most cases it won't be (e.g. java.net.URLConnection). Because : 1) We are asking Sun about this, so it's clear we're bringing it up as an issue to them. 2) We try to get it from the RI via black-box, and if we can't, we can't and use our best judgement. >=20 > I say that we follow the spec, and if the spec doesn't list an > explicit format, we use our own. If it is amazingly obvious (e.g. a > Point may be printed (1,2)) and it happens to correspond with the Sun > RI, then great, but we shouldn't be striving to be the same in all > cases. So if we are satisfied that it doesn't put us at risk from defense-of-cleanroom perspective, do you still have a problem if we at least try? Geir --------------------------------------------------------------------- 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