javac to emit static flag for local and anonymous classes in static contexts

Archie Cobbs archie.cobbs at gmail.com
Mon May 22 17:16:15 UTC 2023


Hi Liang,

On Sun, May 21, 2023 at 11:29 PM - <liangchenblue at gmail.com> wrote:

> Thus, I suggest emitting static flags for the InnerClasses attribute
> of anonymous/local classes in static/pre-initialization contexts,
>

Related to your question on PR#13656 ... local/anonymous classes in a
pre-initialization context (which we're now calling a "pre-construction"
context) are not static, they're just not instantiable until after
superclass construction.

-Archie

-- 
Archie L. Cobbs
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/core-libs-dev/attachments/20230522/d3b9b2fb/attachment.htm>


More information about the core-libs-dev mailing list