RFR: 8334248: Invalid error for early construction local class constructor method reference [v3]

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Jun 17 17:06:18 UTC 2024


On Mon, 17 Jun 2024 15:56:24 GMT, Archie Cobbs <acobbs at openjdk.org> wrote:

> At least, this is my current understanding of what the spec is meant to say and also what the spec actually says. Please confirm with Dan & Gavin though.

They confirmed that this is what the behavior should be. We're not yet 100% sure the JLS needs further tweaks to support this in full, but I might have read too much into the spec trying to say that the enclosing instance for InnerLocal was EarlyAnonRef.

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

PR Comment: https://git.openjdk.org/jdk/pull/19705#issuecomment-2173908983


More information about the compiler-dev mailing list