You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Tim Ellison (JIRA)" <ji...@apache.org> on 2006/08/02 14:17:15 UTC

[jira] Closed: (HARMONY-759) java.util.regex.Matcher.region(int start, int end) treats end index as inclusive instead of exclusive

     [ http://issues.apache.org/jira/browse/HARMONY-759?page=all ]

Tim Ellison closed HARMONY-759.
-------------------------------

    Resolution: Duplicate
      Assignee: Tim Ellison

Duplicate of HARMONY-713.


> java.util.regex.Matcher.region(int start, int end) treats end index as inclusive instead of exclusive
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-759
>                 URL: http://issues.apache.org/jira/browse/HARMONY-759
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: Tim Ellison
>
> Hello Nik,
> Use pattern 'a\n' to match 'aa\nb.b' and set match region to [0, 2), find() method should return false.
> The following test case passes on RI, but fails on Harmony.
> public void test_find() {
>         Pattern p = Pattern.compile("a\nb*");
>         Matcher matcher = p.matcher("aa\nb.b");
>         matcher.region(0, 2);
>         assertFalse(matcher.find());
>     }
> Best regards,
> Richard.

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