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-classpath mailing list Commit-classpath@gnu.org http://lists.gnu.org/mailman/listinfo/commit-classpath