[code-reflection] Integrated: Support array type constants in code model
Hannes Greule
hgreule at openjdk.org
Mon Jan 22 23:29:54 UTC 2024
On Fri, 19 Jan 2024 08:52:08 GMT, Hannes Greule <hgreule at openjdk.org> wrote:
> Previously, expressions like `String[].class` weren't supported in the code model.
>
> As types are embedded by their fully qualified names (e.g. `java.lang.String[]`), we also have to parse that representation again. I didn't find an existing method to do so, so I wrote it myself. Please let me know if there's a better approach.
>
> I also adapted the test from `TestArrayCreation.java`, using different kinds of array types.
This pull request has now been integrated.
Changeset: a154e5e9
Author: Hannes Greule <hgreule at openjdk.org>
Committer: Paul Sandoz <psandoz at openjdk.org>
URL: https://git.openjdk.org/babylon/commit/a154e5e96ca1b21f9bf3a9eb7cc77a6cfb40093b
Stats: 159 lines in 4 files changed: 156 ins; 1 del; 2 mod
Support array type constants in code model
Reviewed-by: psandoz, mcimadamore
-------------
PR: https://git.openjdk.org/babylon/pull/5
More information about the babylon-dev
mailing list