diff options
author | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-08-21 23:52:25 +0000 |
---|---|---|
committer | Andrew John Hughes <gnu_andrew@member.fsf.org> | 2008-08-21 23:52:25 +0000 |
commit | 3571024399742c8d5533c12cf0287cf15eb8cd4a (patch) | |
tree | 49495b28dc770a0fe37a118e4685c38c8198efb5 | |
parent | d3eab55b0895250e88d5306680aa3251b07ebead (diff) | |
download | classpath-3571024399742c8d5533c12cf0287cf15eb8cd4a.tar.gz |
Reset the append position when resetting a Matcher instance.
2008-08-23 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/util/regex/Matcher.java:
(reset()): Reset append position so
we don't try and append to the end of
the old input.
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | java/util/regex/Matcher.java | 1 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,10 @@ +2008-08-23 Andrew John Hughes <gnu_andrew@member.fsf.org> + + * java/util/regex/Matcher.java: + (reset()): Reset append position so + we don't try and append to the end of + the old input. + 2008-08-22 Andrew John Hughes <gnu_andrew@member.fsf.org> PR classpath/32028: diff --git a/java/util/regex/Matcher.java b/java/util/regex/Matcher.java index a6f34a63b..50cb065f2 100644 --- a/java/util/regex/Matcher.java +++ b/java/util/regex/Matcher.java @@ -337,6 +337,7 @@ public final class Matcher implements MatchResult match = null; regionStart = 0; regionEnd = input.length(); + appendPosition = 0; return this; } |