You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Jim Yu (JIRA)" <ji...@apache.org> on 2008/06/04 05:10:45 UTC

[jira] Commented: (HARMONY-5858) [classlib][regex] Regex LITERAL flag can't be identified

    [ https://issues.apache.org/jira/browse/HARMONY-5858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12602150#action_12602150 ] 

Jim Yu commented on HARMONY-5858:
---------------------------------

Thanks, Nathan.

> [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.