harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-610) java.util.regex.Matcher.matches() fails when the default region is changed
Date Wed, 21 Jun 2006 17:13:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-610?page=all ]

Tim Ellison reassigned HARMONY-610:
-----------------------------------

    Assign To: Tim Ellison

> java.util.regex.Matcher.matches() fails when the default region is changed
> --------------------------------------------------------------------------
>
>          Key: HARMONY-610
>          URL: http://issues.apache.org/jira/browse/HARMONY-610
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: Tim Ellison
>  Attachments: CORRECTED_string_boundaries.patch, string_boundaries.patch, string_boundaries.patch
>
> Hello,
> As the spec says, the method of matches () is used to match the entire region against
the given pattern.
> But if the default region is changed, this method fails when it attempts to match the
specified region against the given pattern.
> RI 5.0 passes the following test, but Harmony fails.
>     public void test_matches() {
>         String input = " word ";
>         Pattern pattern = Pattern.compile("\\w+");
>         Matcher matcher = pattern.matcher(input);
>         matcher.region(1, 5);
>         assertTrue(matcher.matches());
>     }

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


Mime
View raw message