You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nathan Beyer (JIRA)" <ji...@apache.org> on 2008/06/04 04:54:45 UTC
[jira] Resolved: (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:all-tabpanel ]
Nathan Beyer resolved HARMONY-5858.
-----------------------------------
Resolution: Fixed
Patch applied at r662950. Please verify that it was applied as expected.
> [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.