summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-08-21 23:52:25 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-08-21 23:52:25 +0000
commit3571024399742c8d5533c12cf0287cf15eb8cd4a (patch)
tree49495b28dc770a0fe37a118e4685c38c8198efb5
parentd3eab55b0895250e88d5306680aa3251b07ebead (diff)
downloadclasspath-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--ChangeLog7
-rw-r--r--java/util/regex/Matcher.java1
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 464606ba8..338b33c19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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;
}