On Wed, 19 Jun 2024 02:05:28 GMT, lingjun-cg <d...@openjdk.org> wrote:

> It requires append(int), but the Appendable has no such method.

If via `Appendable` we don't have access to `append(int)`, can we simply 
`append(String.valueOf(int))`.
And similarly for `append(char[], int, int)`, can we 
`append(String.valueOf(char[], int, int))`.

According to the method descriptions in `AbstractStringBuilder`, this should 
behaviorally be the same.
That way we don't have to add any new classes, and can continue with the 
generic implementation.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/19513#issuecomment-2181620101

Reply via email to