< prev index next >

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

Print this page

        

*** 166,175 **** --- 166,182 ---- * <p> A {@code SecurityException} is also thrown if this object is a * {@code Constructor} object for the class {@code Class} and {@code flag} * is true. </p> * * @param flag {@inheritDoc} + * + * @throws InaccessibleObjectException {@inheritDoc} + * @throws SecurityException if the request is denied by the security manager + * or this is a constructor for {@code java.lang.Class} + * + * @since 9 + * @spec JPMS */ @Override @CallerSensitive public void setAccessible(boolean flag) { AccessibleObject.checkPermission();
< prev index next >