RFR: 8374155: Add @AOTSafeClassInitializer to Record [v2]
Per Minborg
pminborg at openjdk.org
Thu Jan 8 18:46:18 UTC 2026
On Thu, 8 Jan 2026 18:28:01 GMT, Dan Heidinga <heidinga at openjdk.org> wrote:
>> Per Minborg has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Add a test
>
> test/jdk/java/lang/Record/SafeClassInitializerTest.java line 44:
>
>> 42: @Test
>> 43: void printlnNoParamsTest() {
>> 44: new MyRecord(-1);
>
> I don't understand what this is testing as I don't see an AOT cache being built anywhere. What I am I missing?
It asserts that a user-defined record can be annotated with `@AOTSafeClassInitializer`. This was not possible before.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29084#discussion_r2673455344
More information about the core-libs-dev
mailing list