/**
* The HTTP session context associated with this session.
*/
- protected static HttpSessionContext sessionContext = null;
+ protected static volatile HttpSessionContext sessionContext = null;
/**
protected void writeObject(ObjectOutputStream stream) throws IOException {
// Write the scalar instance variables (except Manager)
- stream.writeObject(new Long(creationTime));
- stream.writeObject(new Long(lastAccessedTime));
- stream.writeObject(new Integer(maxInactiveInterval));
- stream.writeObject(new Boolean(isNew));
- stream.writeObject(new Boolean(isValid));
- stream.writeObject(new Long(thisAccessedTime));
+ stream.writeObject(Long.valueOf(creationTime));
+ stream.writeObject(Long.valueOf(lastAccessedTime));
+ stream.writeObject(Integer.valueOf(maxInactiveInterval));
+ stream.writeObject(Boolean.valueOf(isNew));
+ stream.writeObject(Boolean.valueOf(isValid));
+ stream.writeObject(Long.valueOf(thisAccessedTime));
stream.writeObject(id);
if (manager.getContainer().getLogger().isDebugEnabled())
manager.getContainer().getLogger().debug
// Serialize the attribute count and the Serializable attributes
int n = saveNames.size();
- stream.writeObject(new Integer(n));
+ stream.writeObject(Integer.valueOf(n));
for (int i = 0; i < n; i++) {
stream.writeObject(saveNames.get(i));
try {
private static final String WEB_INF_LIB = "/WEB-INF/lib/";
// Names of JARs that are known not to contain any TLDs
- private static Set<String> noTldJars = null;
+ private static volatile Set<String> noTldJars = null;
private static final org.apache.juli.logging.Log log=
org.apache.juli.logging.LogFactory.getLog( TldConfig.class );
private static final StringManager sm =
StringManager.getManager("org.apache.catalina.util");
- private static ArrayList<Extension> containerAvailableExtensions = null;
+ private static volatile ArrayList<Extension> containerAvailableExtensions =
+ null;
private static ArrayList<ManifestResource> containerManifestResources =
new ArrayList<ManifestResource>();