harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nikolay Kuznetsov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-730) java.util.regex.MatcherResult.group() throws unexpected IllegalStateException
Date Mon, 09 Oct 2006 11:40:21 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-730?page=comments#action_12440866 ] 
Nikolay Kuznetsov commented on HARMONY-730:

Thanks Tim, Richard.
I'm sorry that I have not verified the fix in time, and if it's still needed(to close the
bug), I confirm that everything was applied as expected.

Best regards,

> java.util.regex.MatcherResult.group() throws unexpected IllegalStateException
> -----------------------------------------------------------------------------
>                 Key: HARMONY-730
>                 URL: http://issues.apache.org/jira/browse/HARMONY-730
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Richard Liang
>         Assigned To: Tim Ellison
>         Attachments: matchResult.patch, regex.src.diff
> Hello,
> java.util.regex.MatchResult.group() throws unexpected IllegalStateException. According
to the spec toMatchResult() 'Returns the match state of this matcher as a MatchResult. The
result is unaffected by subsequent operations performed upon this matcher.' But, when invoking
query methods on harmony MatchResult, IllegalStateException will be thrown out.
> The following test case will pass on RI, but fail on Harmony.
> public void test_toMatchResult() {
>         Pattern pattern = Pattern.compile("\\p{Lower}+");
>         Matcher matcher = pattern.matcher("test");
>         assertTrue(matcher.matches());
>         assertEquals("test", matcher.toMatchResult().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


View raw message