Integrated: 8358772: Template-Framework Library: Primitive Types

Emanuel Peter epeter at openjdk.org
Fri Jun 13 06:58:40 UTC 2025


On Fri, 6 Jun 2025 13:25:48 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

> 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

This pull request has now been integrated.

Changeset: 6749c62b
Author:    Emanuel Peter <epeter at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6749c62b9e4261d25bea477e3c0840ab0ee9c73e
Stats:     624 lines in 7 files changed: 580 ins; 39 del; 5 mod

8358772: Template-Framework Library: Primitive Types

Reviewed-by: mhaessig, chagedorn

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

PR: https://git.openjdk.org/jdk/pull/25672


More information about the hotspot-compiler-dev mailing list