Integrated: 8344943: Mark not subclassable classes final in java.base exported classes
Eirik Bjørsnøs
eirbjo at openjdk.org
Fri Jan 24 19:31:56 UTC 2025
On Tue, 26 Nov 2024 13:04:41 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
This pull request has now been integrated.
Changeset: 8e8f8000
Author: Eirik Bjørsnøs <eirbjo at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/8e8f800071851f479f9e8b493bc38c0a38165bab
Stats: 47 lines in 22 files changed: 0 ins; 3 del; 44 mod
8344943: Mark not subclassable classes final in java.base exported classes
Reviewed-by: weijun, liach, djelinski
-------------
PR: https://git.openjdk.org/jdk/pull/22389
More information about the net-dev
mailing list