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(); }