RFR: 8344943: Mark not subclassable classes final in java.base exported classes [v2]
Eirik Bjørsnøs
eirbjo at openjdk.org
Fri Jan 24 19:31:55 UTC 2025
On Fri, 17 Jan 2025 18:19:56 GMT, Eirik Bjørsnøs <eirbjo at openjdk.org> wrote:
>> Please review this PR which adds the `final` modifier to non-subclassable classes in `java.base`.
>>
>> The classes were identified using an automated analysis. See CSR for details.
>>
>> Besides simply adding the `final` access modifier, the PR:
>>
>> * Updates a note in `java.lang.constant.DynamicCallSiteDesc` to not reference subtypes. See CSR for discussion.
>> * Removes the class `java.lang.Runtime` from the test `test/jdk/jdk/internal/reflect/CallerSensitive/CheckCSMs.java`
>> * Updates the copyright year of affected source files
>
> Eirik Bjørsnøs has updated the pull request incrementally with one additional commit since the last revision:
>
> Update copyright headers for 2025
Thanks everyone for your patient reviews in this PR. I'll integrate this now.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/22389#issuecomment-2613236074
More information about the net-dev
mailing list