Hacker News new | ask | show | jobs
by blibble 579 days ago
they certainly were a security constraint back in the day before Java gave up on trying to use the type system for security

e.g. SecurityManager for applets will not let you setAccessible(true) on private fields of system classes

1 comments

Yes but that’s the security manager doing it not the field modifiers. It’s just reusing the modifiers as security metadata.