Java is incrementally restricting reflective mutation of final fields. In JDK 26, such mutations still work but trigger a warning by default. The behavior is controlled via the temporary flag `--illegal-final-field-mutation` with four modes: `allow`, `warn` (default), `debug`, and `deny`. A future release will make mutation fail outright unless explicitly permitted via `--enable-final-field-mutation`. This change is tracked under JEP 500.

1m watch time

Sort: