From 89bc3bc4e7c43c8d0975e44abb9853810ee769ce Mon Sep 17 00:00:00 2001 From: Eric Scharff Date: Wed, 5 Mar 2008 12:10:59 -0700 Subject: [PATCH] Fix bug in StringBuilder.insert() --- classpath/java/lang/StringBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classpath/java/lang/StringBuilder.java b/classpath/java/lang/StringBuilder.java index e2968f9dab..e629a1aa26 100644 --- a/classpath/java/lang/StringBuilder.java +++ b/classpath/java/lang/StringBuilder.java @@ -118,7 +118,7 @@ public class StringBuilder { } public StringBuilder insert(int i, String s) { - if (i < 0 || i >= length) { + if (i < 0 || i > length) { throw new IndexOutOfBoundsException(); }