[code-reflection] RFR: Invocation to vararg methods [v2]
Paul Sandoz
psandoz at openjdk.org
Tue Sep 10 20:58:00 UTC 2024
> 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).
Paul Sandoz has updated the pull request incrementally with one additional commit since the last revision:
Comments.
-------------
Changes:
- all: https://git.openjdk.org/babylon/pull/225/files
- new: https://git.openjdk.org/babylon/pull/225/files/c1f488ae..762488fe
Webrevs:
- full: https://webrevs.openjdk.org/?repo=babylon&pr=225&range=01
- incr: https://webrevs.openjdk.org/?repo=babylon&pr=225&range=00-01
Stats: 6 lines in 1 file changed: 6 ins; 0 del; 0 mod
Patch: https://git.openjdk.org/babylon/pull/225.diff
Fetch: git fetch https://git.openjdk.org/babylon.git pull/225/head:pull/225
PR: https://git.openjdk.org/babylon/pull/225
More information about the babylon-dev
mailing list