Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 41696 invoked from network); 15 Nov 2006 14:34:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2006 14:34:33 -0000 Received: (qmail 65097 invoked by uid 500); 15 Nov 2006 14:34:37 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 65051 invoked by uid 500); 15 Nov 2006 14:34:36 -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 65042 invoked by uid 99); 15 Nov 2006 14:34:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 06:34:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [192.55.52.88] (HELO mga01.intel.com) (192.55.52.88) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Nov 2006 06:34:22 -0800 Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by mga01.intel.com with ESMTP; 15 Nov 2006 06:29:27 -0800 Received: from fmsmsx333.amr.corp.intel.com ([132.233.42.2]) by fmsmga001.fm.intel.com with ESMTP; 15 Nov 2006 06:29:27 -0800 X-ExtLoop1: 1 X-IronPort-AV: i="4.09,425,1157353200"; d="scan'208"; a="164303641:sNHT29176721" Received: from mssmsx411.ccr.corp.intel.com ([10.125.2.10]) by fmsmsx333.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 15 Nov 2006 06:29:27 -0800 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: svn commit: r472115 - /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/GapContent.java Date: Wed, 15 Nov 2006 17:26:43 +0300 Message-ID: <8E389A5F2FEABA4CB1DEC35A25CB39CE73C6F9@mssmsx411> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: svn commit: r472115 - /incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/common/javax/swing/text/GapContent.java Thread-Index: AccIwQxwaeSajsAQQ5i6cTDMVyu5yQAANJIA From: "Ivanov, Alexey A" To: X-OriginalArrivalTime: 15 Nov 2006 14:29:27.0698 (UTC) FILETIME=[74A4BF20:01C708C2] X-Virus-Checked: Checked by ClamAV on apache.org >-----Original Message----- >From: Alexey Petrenko [mailto:alexey.a.petrenko@gmail.com] >Sent: Wednesday, November 15, 2006 5:17 PM >To: harmony-dev@incubator.apache.org >Subject: Re: svn commit: r472115 - >/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/ comm >on/javax/swing/text/GapContent.java > >2006/11/15, Ivanov, Alexey A : >> Stepan, all, >> >> I've created a JIRA to document the incompatibility of >> GapContent.replace(). >Great! >What's the number? :) Sorry, missed one of the most important things :( https://issues.apache.org/jira/browse/HARMONY-2198 > >> There are several test cases added, and some of them are indirectly >> related to replace(). There's also patch which fixes incompatibilities >> of insertString() and remove(). >> >> >> By the way, HARMONY-1753 describes related problem which I suggest to >> resolve as non-bug difference. >> >> >> Regards, >> -- >> Alexey A. Ivanov >> Intel Enterprise Solutions Software Division >> >> >-----Original Message----- >> >From: Ivanov, Alexey A [mailto:alexey.a.ivanov@intel.com] >> >Sent: Thursday, November 09, 2006 12:44 PM >> >To: harmony-dev@incubator.apache.org >> >Subject: RE: svn commit: r472115 - >> >/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java/ >> comm >> >on/javax/swing/text/GapContent.java >> > >> >>-----Original Message----- >> >>From: Stepan Mishura [mailto:stepan.mishura@gmail.com] >> >>Sent: Thursday, November 09, 2006 9:47 AM >> >>To: harmony-dev@incubator.apache.org >> >>Subject: Re: svn commit: r472115 - >> >>/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java >> / >> >comm >> >>on/javax/swing/text/GapContent.java >> >> >> >>On 11/8/06, Ivanov, Alexey A wrote: >> >>> >> >>> >-----Original Message----- >> >>> >From: Stepan Mishura >> >>> >Sent: Wednesday, November 08, 2006 4:09 PM >> >>> >To: harmony-dev@incubator.apache.org >> >>> >Subject: Re: svn commit: r472115 - >> >>> >> >>/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java >> / >> >>> comm >> >>> >on/javax/swing/text/GapContent.java >> >>> > >> >>> >On 11/8/06, Ivanov, Alexey A wrote: >> >>> >> >> >>> >> Stepan, >> >>> >> >> >>> >> I must be missing something obvious... >> >>> >> What kind of regression test do you expect? >> >>> > >> >>> > >> >>> >My logic is quite straightforward: the best way to fix a decision >> is >> >to >> >>> >create a regression test. For example, if another volunteer find >> out >> >>> that >> >>> >Harmony implementation of GapContent differ from RI's and propose a >> >>> patch >> >>> >to >> >>> >fix it will any test remind him (or committer) about the decision? >> >> >> >> >> >>To summarize my position: I see no value in discussing compatibility >> >issues >> >>on harmony-dev if a discussion doesn't have any outcome (JIRA to >> >document a >> >>difference or a regression test to fix implementation behavior). >> > >> >IMHO, there are two JIRAs which document the issue: HARMONY-1809 and >> >HARMONY-1975. >> > >> >I'll add another one to document the *incompatibility* in behaviour and >> >add a small test case which will always fail on the RI (until a >> >volunteer would make Harmony implementation compatible with RI in >> >respect to GapContent.replace()). >> > >> > >> >Thanks for your opinion, Stepan. >> > >> > >> >Regards, >> >Alexey. >> > >> >> >> >>In our case evaluation of HARMONY-1809 and HARMONY-1975 showed a >> >>difference with RI. So we should fix/document it. Does this fit to >> >>'Good Issue Resolution Guideline'? >> >> >> >>If a volunteer wants to make Harmony implementation of >> >>> GapContent.replace() compatible with RI, they will provide many >> tests >> >- >> >>> to test all invalid and edge situations to ensure the behaviour is >> >>> *compatible* - along with patch. And I see no reason to stop them. >> >> >> >> >> >>Sure, no reason to stop. >> >> >> >>(However, I believe a volunteer will search JIRA for GapContent before >> >>> starting this work. And then they face this bug.) >> >>> >> >>> On the other hand, I hardly imagine an application depends on this >> >>> functionality. That's why I haven't fixed it myself. >> >> >> >> >> >>IMHO, an assumption that there is no such application is not a reason >> >for >> >>not documenting the difference. >> >> >> >>> >> >>> >In our case we decided not to follow RI and do nothing for invalid >> >>> >parameters. So a regression test should verify that Harmony >> silently >> >>> >ignores >> >>> >bad parameters. >> >>> >> >>> It may make sense. >> >> >> >> >> >>From my experience it always makes sense to add a test (even simple >> and >> >>obvious). >> >> >> >>Thanks, >> >>Stepan. >> >> >> >>> >> >>> >BWT, HARMONY-1809 should be marked as "non-bug difference from RI". >> >>> >> >>> I'm against this. >> >>> >> >>> > >> >>> >Thanks, >> >>> >Stepan. >> >>> > >> >>> >What was done is the signature of the GapContent.replace had been >> >>> >> changed so that it didn't contain 'throws BadLocationException' >> >>> clause. >> >>> >> >> >>> >> What is a regression test to demonstrate? That >> >BadLocationException >> >>> is >> >>> >> not thrown any more? >> >>> >> Or do you insist on setting gapStart to -2 after call replace(-2, >> >2, >> >>> >> null, 0), so that any subsequent operation on GapContent >> generates >> >>> >> ArrayIndexOutOfBounds? >> >>> >> >> >>> >> Regards, >> >>> >> Alexey. >> >>> >> >> >>> >> >> >>> >> P.S. The discussion thread: >> >>> >> >> >>> >> >http://thread.gmane.org/gmane.comp.java.harmony.devel/17837/focus=3D1783= 7 >> >>> >> The related JIRA issues: >> >>> >> https://issues.apache.org/jira/browse/HARMONY-1809 >> >>> >> https://issues.apache.org/jira/browse/HARMONY-1975 >> >>> >> >> >>> >> >> >>> >> -- >> >>> >> Alexey A. Ivanov >> >>> >> Intel Middleware Product Division >> >>> >> >> >>> >> >> >>> >> >-----Original Message----- >> >>> >> >From: Stepan Mishura [mailto: stepan.mishura@gmail.com ] >> >>> >> >Sent: Wednesday, November 08, 2006 9:12 AM >> >>> >> >To: harmony-dev >> >>> >> >Subject: Re: svn commit: r472115 - >> >>> >> >> >>> >> >>/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java >> / >> >>> >> comm >> >>> >> >on/javax/swing/text/GapContent.java >> >>> >> > >> >>> >> >Hi, >> >>> >> > >> >>> >> >Any chance to see regression test (that I asked for in >> >>> HARMONY-1975)? >> >>> >> :-) >> >>> >> > >> >>> >> >Thanks, >> >>> >> >Stepan. >> >>> >> > >> >>> >> >>-----Original Message----- >> >>> >> >>From: apetrenko@apache.org [mailto: apetrenko@apache.org ] >> >>> >> >>Sent: Tuesday, November 07, 2006 7:50 PM >> >>> >> >>To: harmony-commits@incubator.apache.org >> >>> >> >>Subject: svn commit: r472115 - >> >>> >> >> >>> >> >>>/incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/jav >> a >> >>> >> /com >> >>> >> >m >> >>> >> > >> >>> >> >>on/javax/swing/text/GapContent.java >> >>> >> >> >> >>> >> >>Author: apetrenko >> >>> >> >>Date: Tue Nov 7 05:50:07 2006 >> >>> >> >>New Revision: 472115 >> >>> >> >> >> >>> >> >>URL: http://svn.apache.org/viewvc?view=3Drev&rev=3D472115 >> >>> >> >>Log: >> >>> >> >>Patch for HARMONY-1809 >> >>> >> >>"[classlib][swing]javax.swing.text.GapContent.replace(int, int, >> >>> >> >> java.lang.Object, int) throws unspescified >> >BadLocationException" >> >>> >> >> >> >>> >> >>Modified: >> >>> >> >> >> >>> >> >> >>> >> >>>incubator/harmony/enhanced/classlib/trunk/modules/swing/src/main/java >> / >> >>> >> comm >> >>> >> >o >> >>> >> >>n/javax/swing/text/GapContent.java >> >>> >> >> >> >>> >> > >> >>> >> >> >>> >> >> >>> >-- >> >>> >Stepan Mishura >> >>> >Intel Middleware Products Division >> >>> >------------------------------------------------------ >> >>> >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 >> >>> >> >>> -- >> >>> Alexey A. Ivanov >> >>> Intel Middleware Product Division >> >>> >> >> >> >> >> >> >> >>-- >> >>Stepan Mishura >> >>Intel Middleware Products Division >> >>------------------------------------------------------ >> >>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 >> > >> >-- >> >Alexey A. Ivanov >> >Intel Enterprise Solutions Software Division >> -- Alexey A. Ivanov Intel Enterprise Solutions Software Division