[code-reflection] Integrated: Invocation to vararg methods
Paul Sandoz
psandoz at openjdk.org
Wed Sep 18 23:06:58 UTC 2024
On Tue, 10 Sep 2024 01:06:13 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Re-consolidate to one invocation operation that explicitly declares its invoke kind and whether it is an invocation to a varargs method.
>
> Resolution of a method reference accepts an invoke kind. The ambiguity when resolving a method reference without an invoke kind has been cleared up, in these cases we can only resolve to a direct method, one in which the referencing class is the class that declares the method.
>
> I managed to avoid numerous changes to update the text models in language tests. Creating an invoke operation from external form is permissive in the attributes that are present. It makes the same assumptions as the invoke factory method in determining the invocation kind from the argument count and invoke descriptor count, and assumes the method is not a varargs method (the common case).
This pull request has now been integrated.
Changeset: bb48552f
Author: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/bb48552fc3166ff941fdeaa2c4f26a52b2ea81f3
Stats: 649 lines in 17 files changed: 430 ins; 118 del; 101 mod
Invocation to vararg methods
-------------
PR: https://git.openjdk.org/babylon/pull/225
More information about the babylon-dev
mailing list