[code-reflection] Integrated: Improve resolution of types in `CodeModelToAST`
Maurizio Cimadamore
mcimadamore at openjdk.org
Fri Apr 11 09:59:33 UTC 2025
On Thu, 10 Apr 2025 11:37:16 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> The `CodeModelToAST` class features an ad-hoc table of types, which is hard-wired to include all the types that can come up in the code model generated by `OpBuilder`.
> This approach is fragile (if new types are relied upon by `OpBuilder`, they need to be added there), and duplicates type resolution tables that javac has to maintain anyway.
>
> This PR replaces the ad-hoc type table with more idiomatic javac type lookup logic.
This pull request has now been integrated.
Changeset: 1a28d369
Author: Maurizio Cimadamore <mcimadamore at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/1a28d3693feff089bb111c89a23d5b073dc95c1e
Stats: 66 lines in 1 file changed: 8 ins; 53 del; 5 mod
Improve resolution of types in `CodeModelToAST`
-------------
PR: https://git.openjdk.org/babylon/pull/391
More information about the babylon-dev
mailing list