Hi, Martin. I take it that you're going to need a review, ccc, etc. for this change? If you do, then as the owner of String* I'd be happy to handle it. Let me know. iris Martin Buchholz wrote:
This message contains bug report + fix.
The spec for StringBuilder.append has an erroneous @throws IndexOutOfBoundsException.
(StringBuffer.append does not have the same problem)
Here's the easy (except for the paperwork) fix:
diff --git a/src/share/classes/java/lang/StringBuilder.java b/src/share/classes/java/lang/StringBuilder.java --- a/src/share/classes/java/lang/StringBuilder.java +++ b/src/share/classes/java/lang/StringBuilder.java @@ -175,7 +175,6 @@ }
/** - * @throws IndexOutOfBoundsException {@inheritDoc} */ public StringBuilder append(CharSequence s) { if (s == null)
Martin