From commits-return-54906-apmail-harmony-commits-archive=harmony.apache.org@harmony.apache.org Wed Jun 04 03:45:08 2008 Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 77877 invoked from network); 4 Jun 2008 03:45:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jun 2008 03:45:07 -0000 Received: (qmail 62791 invoked by uid 500); 4 Jun 2008 03:45:10 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 62777 invoked by uid 500); 4 Jun 2008 03:45:10 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 62768 invoked by uid 99); 4 Jun 2008 03:45:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 20:45:10 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jun 2008 03:44:29 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7008A234C12C for ; Tue, 3 Jun 2008 20:44:46 -0700 (PDT) Message-ID: <258358043.1212551086457.JavaMail.jira@brutus> Date: Tue, 3 Jun 2008 20:44:46 -0700 (PDT) From: "Nathan Beyer (JIRA)" To: commits@harmony.apache.org Subject: [jira] Closed: (HARMONY-5858) [classlib][regex] Regex LITERAL flag can't be identified In-Reply-To: <200302019.1212494205882.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 [ https://issues.apache.org/jira/browse/HARMONY-5858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Nathan Beyer closed HARMONY-5858. --------------------------------- > [classlib][regex] Regex LITERAL flag can't be identified > -------------------------------------------------------- > > Key: HARMONY-5858 > URL: https://issues.apache.org/jira/browse/HARMONY-5858 > Project: Harmony > Issue Type: Bug > Components: Classlib > Affects Versions: 5.0M6 > Reporter: Jim Yu > Assignee: Nathan Beyer > Fix For: 5.0M7 > > Attachments: HARMONY-5858.diff > > > The LITERAL flag can't be identified by Harmony. > import java.util.regex.Pattern; > import java.util.regex.Matcher; > public class RegexFlag { > /** > * @param args > */ > public static void main(String[] args) { > try{ > Pattern regex = Pattern.compile("\\u6211", Pattern.LITERAL); > Matcher matcher = regex.matcher("\\u6211"); > System.out.println(matcher.matches()); > } > catch(IllegalArgumentException e){ > e.printStackTrace(); > } > } > } > Output of RI: true > Output of Harmony: > java.lang.IllegalArgumentException: Invalid match flags value > at java.util.regex.Pattern.compile(Pattern.java:278) > at com.ibm.Jim.RegexFlag.main(RegexFlag.java:13) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.