RFC: 8357183: Improving efficiency of Writer::append(CharSequence) and Writer::append(CharSequence, int, int) / Sub Task of 8356679: Using CharSequence::getChars internally

Markus KARG markus at headcrashing.eu
Tue May 27 11:14:40 UTC 2025


>
> Writer was retrofitted to implement Appendable in JDK 5 with the 3-arg 
> append documented to behave "in exactly the same as ..." the 
> write(String) method. That's 20 years of subclasses that might be 
> depending on this behavior. Also 20 years of subclasses that may 
> depend on the 3-arg append calling the 1-arg append. So my initial 
> reaction is that the risk may not be low and this proposal will 
> require significant analysis of Writer implementations before the 
> compatibility risk can be assessed.
>
> -Alan

Nobody intends to hastily merge this. I already wrote (multiply) that an 
intensive analysis has to be performed and a KI  based analysis of 
Github WAS already performed.



More information about the core-libs-dev mailing list