|
|
|
|
|
by rusk
579 days ago
|
|
Field modifiers are a semantic constraint not a security constraint. It is right and proper that you should be able to bypass them with the appropriate backflips. The main issue is safety cause you might modify something that isn’t modifiable and cause a SEGV and that is precisely the concern access modifiers are meant to address. |
|
e.g. SecurityManager for applets will not let you setAccessible(true) on private fields of system classes