Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 36379 invoked from network); 27 Jul 2006 10:38:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Jul 2006 10:38:15 -0000 Received: (qmail 18614 invoked by uid 500); 27 Jul 2006 10:38:11 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 18557 invoked by uid 500); 27 Jul 2006 10:38:10 -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 18546 invoked by uid 99); 27 Jul 2006 10:38:10 -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 03:38:10 -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.152 is neither permitted nor denied by domain of smallsmallorgan@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; Thu, 27 Jul 2006 03:38:09 -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 k6RAhYjC221160 for ; Thu, 27 Jul 2006 20:43:34 +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 k6RAf00q218290 for ; Thu, 27 Jul 2006 20:41:06 +1000 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id k6RAba2U027787 for ; Thu, 27 Jul 2006 20:37:36 +1000 Received: from d23m0011.cn.ibm.com ([9.181.32.74]) by d23av03.au.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id k6RAbZMA026466 for ; Thu, 27 Jul 2006 20:37:35 +1000 Received: from [127.0.0.1] ([9.181.106.139]) by d23m0011.cn.ibm.com (Lotus Domino Release 6.5.5HF262) with ESMTP id 2006072718364875-5161 ; Thu, 27 Jul 2006 18:36:48 +0800 Message-ID: <44C8972D.3060809@gmail.com> Date: Thu, 27 Jul 2006 18:36:29 +0800 From: Spark Shen User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [classlib][regex] Is this a issue of java.util.regex.Matcher.region(int, int); References: <44C83943.70305@gmail.com> <44C83D77.6090705@gmail.com> <8ce6aa550607270258r4c66997fk6181068b84ee5a81@mail.gmail.com> In-Reply-To: <8ce6aa550607270258r4c66997fk6181068b84ee5a81@mail.gmail.com> X-MIMETrack: Itemize by SMTP Server on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 27/07/2006 18:36:48, Serialize by Router on D23M0011/23/M/IBM(Release 6.5.5HF262 | April 5, 2006) at 27/07/2006 18:37:35 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Nikolay Kuznetsov =E5=86=99=E9=81=93: > Hello Spark Shen, > >> It seems that Matcher.region(int, int) will not have any effects when >> called. This can be demonstrated by the following test case > > there is an issue quite similar to one you have raised filled by Richard: > http://issues.apache.org/jira/browse/HARMONY-759 > > I'll try to provide a fix today, thanks for reminding. > >> BTW, there are other issues about java.util.regex. If necessary, can we >> disscuss all these issues case by case. > > Surely, we can discuss issues if needed, but if smth just does not > work, please fill an issue in JIRA, I'm looking after regex issues. If > you need some problems to fix urgently, let me know separately. > Thank you very much, do I need to raise a new JIRA for this issue? Using=20 the test case I give, I debug into the code. The calling stack is as follow: SequenceSet.indexOf(CharSequence, int) SequenceSet.find(int, CharSequence, MatchResultImpl) line: 69 SingleSet.find(int, CharSequence, MatchResultImpl) line: 52 Matcher.findAt(int) line: 317 Matcher.find(int) line: 304 Matcher.find() line: 342 in indexOf line 115 : int last =3D string.charAt(charCount - 1); the value = of string is "c". I figure out this string variable is a member of SequenceSet. Since the=20 region in my test case setting is (0, 2), I am not sure whether the string value here should be smth like "a". Since SequenceSet is construct when Pattern.complile() and this members=20 value of the constructed SequenceSet seems never change ever since, does it make sense that when region is=20 called, value of SequeceSet should also be updated? Hope this guess would be helpful. :-) Correct me if I am wrong. Best regards > Yours sincerely, > Nik. > > --------------------------------------------------------------------- > 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 > > --=20 Spark Shen 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