/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
JEP draft: Prepare to make final mean final
(openjdk.org)
207 points
mfiguiere
| 2 comments |
31 Mar 25 19:35 UTC
|
HN request time: 0.445s
|
source
1.
keybored
◴[
31 Mar 25 20:14 UTC
]
No.
43539387
[source]
▶
>>43538919 (OP)
#
I don’t see a way to opt-in to a hard error if this happens somewhere in the guts of the code (third-party probably).
replies(1):
>>43540057
#
ID:
GO
2.
steveklabnik
◴[
31 Mar 25 21:15 UTC
]
No.
43540057
[source]
▶
>>43539387 (TP)
#
> --illegal-final-final-mutation=deny will result in Field::set throwing an IllegalAccessException for every illegal final field mutation.
Seems like this way?
↑