[code-reflection] RFR: Avoid boxing when concatenating a string with a primitive
Paul Sandoz
psandoz at openjdk.org
Tue Sep 10 15:55:18 UTC 2024
On Tue, 10 Sep 2024 03:45:29 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:
> Avoid boxing when concatenating a string with a primitive.
src/jdk.compiler/share/classes/com/sun/tools/javac/comp/ReflectMethods.java line 833:
> 831: Function<Value, Value> scanRhs = (lhs) -> {
> 832: Type unboxedType = types.unboxedTypeOrType(tree.type);
> 833: // if string concat and rhs is primitive, toValue(rhs)
Remove the comment at line 847
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/226#discussion_r1752239573
More information about the babylon-dev
mailing list