On Mon, 15 Jun 2026 12:25:02 GMT, Alan Bateman <[email protected]> wrote:
> Using the reflection APIs to mutate a strictly-initialized final instance > field should fail with IllegalAccessException. > > The list of conditions in Field.set and setAccessible are also updated. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 1eb4aaad Author: Alan Bateman <[email protected]> Committer: Chen Liang <[email protected]> URL: https://git.openjdk.org/valhalla/commit/1eb4aaad8c63479aea3aa153c09203eb774b9e35 Stats: 163 lines in 4 files changed: 158 ins; 1 del; 4 mod 8386702: [lworld] Reflection APIs should not allow strictly-initialized final fields to be mutated Reviewed-by: liach ------------- PR: https://git.openjdk.org/valhalla/pull/2548
