[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commit-cp] [bug #11962] java.util.regex.Matcher.group(int) differs from
From: |
Joe Gallo |
Subject: |
[commit-cp] [bug #11962] java.util.regex.Matcher.group(int) differs from Sun's API |
Date: |
Tue, 10 May 2005 22:22:43 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050427 Epiphany/1.6.3 |
Follow-up Comment #1, bug #11962 (project classpath):
java.util.regex.Matcher returns IllegalStateException for itself, see
assertMatchOp at the end of Matcher.java; so gnu.regexp.REMatch doesn't have
to throw it.
/gnu/regexp/REMatch.java, however, does incorrectly return empty strings
instead of null values for groups that are outside the range of the regex's
result.
Attached is a simple patch that corrects the issue in REMatch.java.
_______________________________________________________
Additional Item Attachment:
File name: regexp_should_return_null.patch Size:0 KB
Changes return \"\" to return null.
<http://savannah.gnu.org/bugs/download.php?item_id=11962&item_file_id=2492>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=11962>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [commit-cp] [bug #11962] java.util.regex.Matcher.group(int) differs from Sun's API,
Joe Gallo <=