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

Paul Sandoz psandoz at openjdk.org
Mon Jan 6 19:12:46 UTC 2025


On Mon, 6 Jan 2025 14:47:22 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.
>
> Mourad Abbay has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Call ModuleLayer#findLoader once and cache the result
>  - Change JCTree#codeModel 's type to MethodSymbol

src/jdk.incubator.code/share/classes/jdk/incubator/code/internal/QuotedHelper.java line 40:

> 38:         return (Quoted)Interpreter.invoke(lookup, op, args);
> 39:     }
> 40:     public static Quoted makeQuoted(MethodHandles.Lookup lookup, FuncOp op, Object[] args) {

Can the prior method accepting a string be removed?

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

PR Review Comment: https://git.openjdk.org/babylon/pull/301#discussion_r1904534409


More information about the babylon-dev mailing list