RFR: JDK-8273914: Indy string concat changes order of operations
forax at openjdk.java.net
Thu Oct 7 05:45:08 UTC 2021
On Wed, 6 Oct 2021 22:20:11 GMT, Liam Miller-Cushon <cushon at openjdk.org> wrote:
> The current implementation is not eagerly converting boxes for primitives types, which wrappers should not be converted eagerly?
I was just thinking that not calling Boolean or Double.toString() explicitly was Ok
> `myStringBuilder.append("foo") + myStringBuilder.append("bar")`
Aaaah, so only primitives + their boxes should not be evaluated eagerly.
More information about the hotspot-runtime-dev