Confusing javadoc on a method java.lang.StringBuilder#readObject

Joseph D. Darcy joe.darcy at oracle.com
Tue Sep 21 02:00:57 UTC 2021


On 9/8/2021 1:28 PM, Andrey Turbanov wrote:
> Hello.
> I found a confusing javadoc of the method java.lang.StringBuilder#readObject:
>
> "readObject is called to restore the state of the StringBuffer from a stream."
>
> I believe there should be "StringBuilder" instead of "StringBuffer".

Agreed; filed

     JDK-8274031: Typo in StringBuilder.readObject

Thanks,

-Joe



More information about the core-libs-dev mailing list