RFR: 8349754: Invalid "early reference" error when class extends an outer class [v2]
Archie Cobbs
acobbs at openjdk.org
Fri Feb 14 17:53:16 UTC 2025
On Fri, 14 Feb 2025 10:11:47 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> So... N.this is always used to denote an enclosing instance...
I think that's not always true... for example, this compiles just fine (with or without the explicit `super()`):
class Myself {
int x;
Myself() {
Myself.this.x = 42;
super();
}
}
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23545#discussion_r1956524379
More information about the compiler-dev
mailing list