[code-reflection] RFR: Super expressions [v2]
Paul Sandoz
psandoz at openjdk.org
Fri Sep 6 17:51:27 UTC 2024
On Fri, 6 Sep 2024 08:10:44 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> src/jdk.compiler/share/classes/com/sun/tools/javac/comp/ReflectMethods.java line 1095:
>>
>>> 1093: if (!sym.isStatic()) {
>>> 1094: args.add(receiver);
>>> 1095: isSuper = switch (access.selected) {
>>
>> Note for later - `expr.super(...)` for inner class super constructor calls. Perhaps add a `@@@` comment now?
>
> But... bonus points for having handled `Foo.super.xyz` and `Foo.this.xyz` :-)
Memo to self - we don't currently support reflecting over the body of a constructor.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/221#discussion_r1747508311
More information about the babylon-dev
mailing list