Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 18567 invoked from network); 18 Apr 2006 10:05:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Apr 2006 10:05:24 -0000 Received: (qmail 78767 invoked by uid 500); 18 Apr 2006 10:05:23 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 78727 invoked by uid 500); 18 Apr 2006 10:05:22 -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 78716 invoked by uid 99); 18 Apr 2006 10:05:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Apr 2006 03:05:22 -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; Tue, 18 Apr 2006 03:05:22 -0700 Received: from brutus (localhost.localdomain [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id EA2517142CB for ; Tue, 18 Apr 2006 10:04:22 +0000 (GMT) Message-ID: <29697427.1145354662955.JavaMail.jira@brutus> Date: Tue, 18 Apr 2006 10:04:22 +0000 (GMT+00:00) From: "Nikolay Kuznetsov (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Commented: (HARMONY-350) HARMONY-39 Regular expressions does not match backreferences during find. In-Reply-To: <62558080.1145035740194.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-350?page=comments#action_12374890 ] Nikolay Kuznetsov commented on HARMONY-350: ------------------------------------------- This fix and issue overall does not deal with indices in exceptions. The problem here is that patch from HARMONY-352 interfere with this patch and result of the conflict resolution lacks HARMONY-352 fix for pattern(wich I'm concerned about, see H-352 for details). I can attach single patch for both problems H-350 and Pattern.java part of the H-352 or, if it possible to commit this one as is, I can provide separate patch for H-352 part of the problem. > HARMONY-39 Regular expressions does not match backreferences during find. > ------------------------------------------------------------------------- > > Key: HARMONY-350 > URL: http://issues.apache.org/jira/browse/HARMONY-350 > Project: Harmony > Type: Bug > Components: Classlib > Environment: All > Reporter: Nikolay Kuznetsov > Assignee: Mikhail Loenko > Priority: Minor > Attachments: groups.diff > > For the optimization purposes match and find methods of HARMONY-39 regex works differently. One of the differences that cause some problems is that group boundaries are being set in different time (onward, in case of match and on the way back in the case of find). Thus back references "\1-9" won't work as expected in case of find method (because in case of find boundaries are not yet set when back reference appears). The same problem appears if pattern contains ".*", where we try to simulate find and face the same problem. > While fixing this problem the following simple issues was also found and fixed: > - Empty constructs are not being processed correctly. The examples of this construct are empty group(i.e. "()"), or empty alternation(i.e. "|") and combinations with embedded flags, which do not match actual characters. In all cases HARMONY-39 engine throws PatternSyntaxException instead of returning token representing empty construct. > - Boundaries where embedded flags are in effect are not correctly processed: > - Whitespaces being ignored after group which nested comment flag; > - Global embedded flags do not mix with local once; > - Minus sign in embedded flags automatically removes case insensitive flag; > The attached patch will address all mentioned above broblems. -- 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