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/03 13:56:45 UTC
[jira] Created: (HARMONY-5858) [classlib][regex] Regex LITERAL flag
can't be identified
[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
Fix For: 5.0M7
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.
[jira] Closed: (HARMONY-5858) [classlib][regex] Regex LITERAL flag
can't be identified
Posted by "Nathan Beyer (JIRA)" <ji...@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.
[jira] Assigned: (HARMONY-5858) [classlib][regex] Regex LITERAL
flag can't be identified
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nathan Beyer reassigned HARMONY-5858:
-------------------------------------
Assignee: Nathan Beyer
> [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.
[jira] Updated: (HARMONY-5858) [classlib][regex] Regex LITERAL flag
can't be identified
Posted by "Jim Yu (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jim Yu updated HARMONY-5858:
----------------------------
Attachment: HARMONY-5858.diff
The patch fixed the LITERAL flag can't be identified problem.
> [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
> 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.
[jira] Commented: (HARMONY-5858) [classlib][regex] Regex LITERAL
flag can't be identified
Posted by "Jim Yu (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Resolved: (HARMONY-5858) [classlib][regex] Regex LITERAL
flag can't be identified
Posted by "Nathan Beyer (JIRA)" <ji...@apache.org>.
[ 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.