RFR: 8344943: Mark not subclassable classes final in java.base exported classes [v2]

Eirik Bjørsnøs eirbjo at openjdk.org
Fri Jan 17 18:19:56 UTC 2025


> 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

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/22389/files
  - new: https://git.openjdk.org/jdk/pull/22389/files/d93dcf8b..12c3e153

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=22389&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=22389&range=00-01

  Stats: 19 lines in 19 files changed: 0 ins; 0 del; 19 mod
  Patch: https://git.openjdk.org/jdk/pull/22389.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/22389/head:pull/22389

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


More information about the net-dev mailing list