[code-reflection] RFR: Conflicting code reflection fields for method overrides [v2]
Paul Sandoz
psandoz at openjdk.org
Fri Jun 28 16:20:42 UTC 2024
On Fri, 28 Jun 2024 16:10:11 GMT, Adam Sotona <asotona at openjdk.org> wrote:
>> Technically to create fields `<method name>+<signature>+$op` still looks like a quick workaround.
>> Can we introduce a custom method attribute or annotation?
>
>> Could we encode an instance of `MethodRef` in the field name...
>
> Maybe I don't know all the javac tricks, but I understand the `MethodRef` instance is composed a bit later in the process. Here we try to reconstruct the composition of it (or at least the method parameters).
Yes, it's a temporary solution We need to think more carefully about a better location such as a method attribute or synthetic annotation, but I think we should do that separately, and we also need to consider quotable lambda expressions too.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/162#discussion_r1658969672
More information about the babylon-dev
mailing list