[code-reflection] RFR: Support bytecode generation for invocation of varArg method

Paul Sandoz psandoz at openjdk.org
Thu Nov 7 00:55:01 UTC 2024


On Wed, 6 Nov 2024 11:19:36 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> Support bytecode generation for invocation of varArg method.
>
> src/java.base/share/classes/java/lang/reflect/code/bytecode/BytecodeGenerator.java line 365:
> 
>> 363:         } else {
>> 364:             processOperands(op.operands());
>> 365:         }
> 
> There are 19 calls of this helper method and only one is related to InvokeOp operands.
> I would suggest to apply this logic where InvokeOp bytecode is generated.

Yes, keep it local to the `InvokeOp` case at line 883.

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

PR Review Comment: https://git.openjdk.org/babylon/pull/272#discussion_r1831905180


More information about the babylon-dev mailing list