< prev index next >

src/java.base/share/classes/java/lang/reflect/AccessibleObject.java

Print this page

        

*** 45,55 **** * permits sophisticated applications with sufficient privilege, such as Java * Object Serialization or other persistence mechanisms, to manipulate objects * in a manner that would normally be prohibited. * * <p> Java language access control prevents use of private members outside ! * their class; package access members outside their package; protected members * outside their package or subclasses; and public members outside their * module unless they are declared in an {@link Module#isExported(String,Module) * exported} package and the user {@link Module#canRead reads} their module. By * default, Java language access control is enforced (with one variation) when * {@code Field}s, {@code Method}s, or {@code Constructor}s are used to get or --- 45,55 ---- * permits sophisticated applications with sufficient privilege, such as Java * Object Serialization or other persistence mechanisms, to manipulate objects * in a manner that would normally be prohibited. * * <p> Java language access control prevents use of private members outside ! * their top-level class; package access members outside their package; protected members * outside their package or subclasses; and public members outside their * module unless they are declared in an {@link Module#isExported(String,Module) * exported} package and the user {@link Module#canRead reads} their module. By * default, Java language access control is enforced (with one variation) when * {@code Field}s, {@code Method}s, or {@code Constructor}s are used to get or
< prev index next >