[code-reflection] RFR: Replace opField with opMethod for lambdas.

Maurizio Cimadamore mcimadamore at openjdk.org
Mon Jan 6 14:02:05 UTC 2025


On Wed, 25 Dec 2024 10:25:29 GMT, Mourad Abbay <mabbay at openjdk.org> wrote:

> We replace field holding the textual representation of an identified lambda with method that returns the representation of that lambda.

Marked as reviewed by mcimadamore (Reviewer).

src/java.base/share/classes/java/lang/invoke/InnerClassLambdaMetafactory.java line 495:

> 493:                 Class<?> quotedHelper = layer.findLoader("jdk.incubator.code")
> 494:                         .loadClass("jdk.incubator.code.internal.QuotedHelper");
> 495:                 Class<?> funcOp = layer.findLoader("jdk.incubator.code")

Maybe we should try to call `findLoader` only once and cache the result?

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

PR Review: https://git.openjdk.org/babylon/pull/301#pullrequestreview-2532198196
PR Review Comment: https://git.openjdk.org/babylon/pull/301#discussion_r1904182462


More information about the babylon-dev mailing list