[code-reflection] RFR: Super expressions [v2]

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Sep 6 08:15:10 UTC 2024


On Fri, 6 Sep 2024 08:07:44 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:

>> Paul Sandoz has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Remove comment.
>
> 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` :-)

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

PR Review Comment: https://git.openjdk.org/babylon/pull/221#discussion_r1746687555


More information about the babylon-dev mailing list