[code-reflection] Integrated: Dialect factory
Paul Sandoz
psandoz at openjdk.org
Tue Jun 17 16:12:49 UTC 2025
On Fri, 13 Jun 2025 23:51:15 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Group op factory and type element factory into dialect factory record.
>
> The synthetic method added by javac to build a code model now has no parameters. The dialect factory, namely that for Java ops and type elements, is accessed from within the generated method body. This simplifies the connections between compiler/runtime and code reflection (see the reduction in `CodeReflectionSymbols.java` and `InnerClassLambdaMetafactory.java`).
>
> The synthetic method's accessibility is now private, as is the synthetic method to access the quoted instance from a quotable lambda's functional interface implementation.
>
> Further alignment of the factories and their use will occur in one or more subsequent PRs.
This pull request has now been integrated.
Changeset: 51591b2b
Author: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/51591b2b75d5627c35d0e53e0b540dbed922d8b4
Stats: 199 lines in 11 files changed: 69 ins; 80 del; 50 mod
Dialect factory
Reviewed-by: mcimadamore
-------------
PR: https://git.openjdk.org/babylon/pull/441
More information about the babylon-dev
mailing list