RFR: 8358772: Template-Framework Library: Primitive Types [v2]
Emanuel Peter
epeter at openjdk.org
Thu Jun 12 11:19:24 UTC 2025
> I would like to add primitive type support to the template framework library.
>
> In follow-up work, we will use these types in random expression generation - but they can also already be useful on their own now.
>
> I encountered an issue with some methods that return `Token` from the `TemplateFramework`, such as `Hook.insert` and `addDataName`. Since `Token` was package private, this class could not be used in some places where automatic type inference is required. I now refactored the code, so that the `Token` is just an empty interface, and all the methods are moved to a separate class `TokenParser`.
>
> Original experiments from here: https://github.com/openjdk/jdk/pull/23418
Emanuel Peter has updated the pull request incrementally with two additional commits since the last revision:
- Apply suggestions from code review
Co-authored-by: Christian Hagedorn <christian.hagedorn at oracle.com>
Co-authored-by: Manuel Hässig <manuel at haessig.org>
- Apply suggestions from code review
Co-authored-by: Christian Hagedorn <christian.hagedorn at oracle.com>
Co-authored-by: Manuel Hässig <manuel at haessig.org>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/25672/files
- new: https://git.openjdk.org/jdk/pull/25672/files/08b9f674..4c8d6312
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=25672&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=25672&range=00-01
Stats: 31 lines in 3 files changed: 0 ins; 13 del; 18 mod
Patch: https://git.openjdk.org/jdk/pull/25672.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25672/head:pull/25672
PR: https://git.openjdk.org/jdk/pull/25672
More information about the hotspot-compiler-dev
mailing list