8344788: Specify that the access control context parameters of Subject.doAsPrivileged are ignored
Reviewed-by: alanb
This commit is contained in:
parent
079f503d96
commit
6aec2dcf76
@ -474,8 +474,8 @@ public final class Subject implements java.io.Serializable {
|
|||||||
/**
|
/**
|
||||||
* Perform privileged work as a particular {@code Subject}.
|
* Perform privileged work as a particular {@code Subject}.
|
||||||
*
|
*
|
||||||
* <p> This method ignores the {@code acc} argument, launches {@code action},
|
* <p> This method launches {@code action} and binds {@code subject} to
|
||||||
* and binds {@code subject} to the period of its execution.
|
* the period of its execution.
|
||||||
*
|
*
|
||||||
* @param subject the {@code Subject} that the specified
|
* @param subject the {@code Subject} that the specified
|
||||||
* {@code action} will run as. This parameter
|
* {@code action} will run as. This parameter
|
||||||
@ -487,8 +487,7 @@ public final class Subject implements java.io.Serializable {
|
|||||||
* @param action the code to be run as the specified
|
* @param action the code to be run as the specified
|
||||||
* {@code Subject}.
|
* {@code Subject}.
|
||||||
*
|
*
|
||||||
* @param acc the {@code AccessControlContext} to be tied to the
|
* @param acc ignored
|
||||||
* specified <i>subject</i> and <i>action</i>.
|
|
||||||
*
|
*
|
||||||
* @return the value returned by the PrivilegedAction's
|
* @return the value returned by the PrivilegedAction's
|
||||||
* {@code run} method.
|
* {@code run} method.
|
||||||
@ -540,8 +539,8 @@ public final class Subject implements java.io.Serializable {
|
|||||||
/**
|
/**
|
||||||
* Perform privileged work as a particular {@code Subject}.
|
* Perform privileged work as a particular {@code Subject}.
|
||||||
*
|
*
|
||||||
* <p> This method ignores the {@code acc} argument, launches {@code action},
|
* <p> This method launches {@code action} and binds {@code subject} to
|
||||||
* and binds {@code subject} to the period of its execution.
|
* the period of its execution.
|
||||||
*
|
*
|
||||||
* @param subject the {@code Subject} that the specified
|
* @param subject the {@code Subject} that the specified
|
||||||
* {@code action} will run as. This parameter
|
* {@code action} will run as. This parameter
|
||||||
@ -553,8 +552,7 @@ public final class Subject implements java.io.Serializable {
|
|||||||
* @param action the code to be run as the specified
|
* @param action the code to be run as the specified
|
||||||
* {@code Subject}.
|
* {@code Subject}.
|
||||||
*
|
*
|
||||||
* @param acc the {@code AccessControlContext} to be tied to the
|
* @param acc ignored
|
||||||
* specified <i>subject</i> and <i>action</i>.
|
|
||||||
*
|
*
|
||||||
* @return the value returned by the
|
* @return the value returned by the
|
||||||
* PrivilegedExceptionAction's {@code run} method.
|
* PrivilegedExceptionAction's {@code run} method.
|
||||||
|
Loading…
Reference in New Issue
Block a user