StringBuilder.append cannot throw IndexOutOfBoundsException
Martin Buchholz
martinrb at google.com
Tue Jul 22 18:49:10 UTC 2008
Iris,
Yes, please take care of CCC.
Hopefully the process for minor spec changes will be
externalized soon.
There are other, non-spec improvements to String javadoc to come.
It would be nice if someone (or a bot) at Sun could generate BlenderRevs
on demand.
Thanks,
Martin
On Tue, Jul 22, 2008 at 4:56 PM, Iris Clark <irisg at alum.mit.edu> wrote:
> 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
>>
>
>
More information about the core-libs-dev
mailing list