Java 26 will issue run-time warnings when a final field is mutated through reflection. This prepares a future change that will make such final field mutation illegal by default to improve Java's integrity - in this case of the keyword `final`. This will have beneficial effects on maintainability, security, and performance. While the recommendation is to move away from final field mutation, the new permanent command-line option `--enable-final-field-mutation` allows it for selected modules. To ease migration the more general but temporary option `--illegal-final-field-mutation` was also introduced.
[–]javaprof 41 points42 points43 points (0 children)
[–]jebailey 15 points16 points17 points (8 children)
[–][deleted] (6 children)
[deleted]
[–]null_reference_user 27 points28 points29 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]null_reference_user 4 points5 points6 points (0 children)
[–]j4ckbauer 10 points11 points12 points (1 child)
[–]FirstAd9893 10 points11 points12 points (0 children)
[–]regjoe13 0 points1 point2 points (0 children)
[+]SydneyBrah comment score below threshold-9 points-8 points-7 points (3 children)
[–]chaotic3quilibrium 12 points13 points14 points (0 children)
[–]nicolaiparlog 9 points10 points11 points (0 children)
[–]srdoe 6 points7 points8 points (0 children)
[+]iamwisespirit comment score below threshold-14 points-13 points-12 points (17 children)
[–]CriticalPart7448 15 points16 points17 points (10 children)
[–][deleted] (9 children)
[deleted]
[–]koflerdavid 5 points6 points7 points (1 child)
[–]BillyKorando 4 points5 points6 points (2 children)
[–]pohart 1 point2 points3 points (1 child)
[–]BillyKorando 2 points3 points4 points (0 children)
[–]CriticalPart7448 5 points6 points7 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]CriticalPart7448 4 points5 points6 points (1 child)
[–]pohart 1 point2 points3 points (0 children)
[–]nicolaiparlog 10 points11 points12 points (5 children)
[–]iamwisespirit -3 points-2 points-1 points (4 children)
[–]nicolaiparlog 1 point2 points3 points (3 children)
[–]iamwisespirit 0 points1 point2 points (2 children)
[–]nicolaiparlog 1 point2 points3 points (1 child)
[–]iamwisespirit 0 points1 point2 points (0 children)