Close thread hazard hole.

git-svn-id: svn://10.0.0.236/trunk@89339 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nboyd%atg.com
2001-03-12 14:55:47 +00:00
parent f4c1402c80
commit 4dbc99eb01
2 changed files with 6 additions and 6 deletions

View File

@@ -1369,16 +1369,16 @@ public final class Context {
* Set the security support for this context.
* <p> SecuritySupport may only be set if it is currently null.
* Otherwise a SecurityException is thrown.
* @param securitySupportObj a SecuritySupport object
* @param supportObj a SecuritySupport object
* @throws SecurityException if there is already a SecuritySupport
* object for this Context
*/
public void setSecuritySupport(SecuritySupport securitySupportObj) {
public synchronized void setSecuritySupport(SecuritySupport supportObj) {
if (securitySupport != null) {
throw new SecurityException("Cannot overwrite existing " +
"SecuritySupport object");
}
securitySupport = securitySupportObj;
securitySupport = supportObj;
}
/**

View File

@@ -1369,16 +1369,16 @@ public final class Context {
* Set the security support for this context.
* <p> SecuritySupport may only be set if it is currently null.
* Otherwise a SecurityException is thrown.
* @param securitySupportObj a SecuritySupport object
* @param supportObj a SecuritySupport object
* @throws SecurityException if there is already a SecuritySupport
* object for this Context
*/
public void setSecuritySupport(SecuritySupport securitySupportObj) {
public synchronized void setSecuritySupport(SecuritySupport supportObj) {
if (securitySupport != null) {
throw new SecurityException("Cannot overwrite existing " +
"SecuritySupport object");
}
securitySupport = securitySupportObj;
securitySupport = supportObj;
}
/**