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] Closed: (HARMONY-625) java.util.regex.Matcher.find() fails when formatting pattern is ("(?s).*")
Date Fri, 30 Jun 2006 14:41:30 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-625?page=all ]
     
Tim Ellison closed HARMONY-625:
-------------------------------

    Resolution: Fixed
     Assign To: Tim Ellison

Was fixed by HARMONY-610.


> java.util.regex.Matcher.find() fails when formatting pattern is ("(?s).*")
> --------------------------------------------------------------------------
>
>          Key: HARMONY-625
>          URL: http://issues.apache.org/jira/browse/HARMONY-625
>      Project: Harmony
>         Type: Bug

>   Components: Classlib
>     Reporter: Richard Liang
>     Assignee: Tim Ellison

>
> Hello,
> java.util.regex.Matcher.find() ignores the specified region when formatting pattern is
("(?s).*"). RI 5.0 passes the following test, but Harmony fails.
> public void test_find()  {
>         Pattern pattern= Pattern.compile("(?s).*");
>         
>         Matcher matcher=pattern.matcher("abcde");
>         matcher.find();
>         assertEquals("abcde",matcher.group());
>         
>         matcher=pattern.matcher("abcde");
>         matcher.region(0, 2);
>         matcher.find();
>         assertEquals("ab",matcher.group());    
> }
> 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


Mime
View raw message