RFR: 8353835: Implement JEP 500: Prepare to Make Final Mean Final [v4]
Alan Bateman
alanb at openjdk.org
Tue Sep 30 08:15:43 UTC 2025
On Mon, 29 Sep 2025 09:42:00 GMT, Volkan Yazici <vyazici at openjdk.org> wrote:
>> Alan Bateman has updated the pull request incrementally with one additional commit since the last revision:
>>
>> RemoveFields(duration) and filter internal frames
>
> src/hotspot/share/runtime/arguments.cpp line 2281:
>
>> 2279: }
>> 2280: } else if (match_option(option, "--illegal-final-field-mutation=", &tail)) {
>> 2281: if (strcmp(tail, "allow") == 0 || strcmp(tail, "warn") == 0 || strcmp(tail, "debug") == 0 || strcmp(tail, "deny") == 0) {
>
> Is the `jdk.module.illegal.final.field.mutation` property intended as a public API? If so, where is it documented?
System properties are used to "communicate" the value of options from the VM to the library code. All internal/undocumented. There is a test in mutateFinal/cli/CommandLineTests.java that checks that specifying the system property on the command line is not effective.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25115#discussion_r2390266998
More information about the core-libs-dev
mailing list