Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 85333 invoked from network); 3 Jul 2006 16:33:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Jul 2006 16:33:16 -0000 Received: (qmail 2262 invoked by uid 500); 3 Jul 2006 16:33:15 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 2167 invoked by uid 500); 3 Jul 2006 16:33:15 -0000 Mailing-List: contact harmony-commits-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-commits@incubator.apache.org Received: (qmail 2155 invoked by uid 99); 3 Jul 2006 16:33:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 09:33:15 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Jul 2006 09:33:14 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C3F324103A4 for ; Mon, 3 Jul 2006 16:31:30 +0000 (GMT) Message-ID: <23119920.1151944290799.JavaMail.jira@brutus> Date: Mon, 3 Jul 2006 16:31:30 +0000 (GMT+00:00) From: "Nikolay Kuznetsov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-674) Pattern throws ArrayIndexOutOfBoundsException when mathching regexp In-Reply-To: <26858798.1151401349871.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-674?page=all ] Nikolay Kuznetsov updated HARMONY-674: -------------------------------------- Attachment: nonCap.patch Non-capturing group in Harmoni implmentation have to count number of character consumed, to avoid overflow on quantifiers, this functionality was duplicated with indices counting for particular group, while no actual group exists. Fix attached. > Pattern throws ArrayIndexOutOfBoundsException when mathching regexp > ------------------------------------------------------------------- > > Key: HARMONY-674 > URL: http://issues.apache.org/jira/browse/HARMONY-674 > Project: Harmony > Type: Bug > Components: Classlib > Environment: any > Reporter: Alexander Simbirtsev > Attachments: nonCap.patch > > Use the following code to reproduce: > import java.util.regex.Pattern; > import junit.framework.TestCase; > public class Test extends TestCase { > public void testPatternMatcher() throws Exception { > Pattern pattern = Pattern.compile("(?:\\d+)(?:pt)"); > assertTrue(pattern.matcher("14pt").matches()); > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira