Author: markt Date: Thu Nov 19 00:50:04 2009 New Revision: 882019 URL: http://svn.apache.org/viewvc?rev=882019&view=rev Log: Static so sync on class object
Modified: tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java Modified: tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java?rev=882019&r1=882018&r2=882019&view=diff ============================================================================== --- tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java (original) +++ tomcat/trunk/java/org/apache/naming/java/javaURLContextFactory.java Thu Nov 19 00:50:04 2009 @@ -103,7 +103,7 @@ // If the thread is not bound, return a shared writable context if (initialContext == null) { - synchronized(this) { + synchronized(getClass()) { if (initialContext == null) { initialContext = new NamingContext( (Hashtable<String,Object>)environment, MAIN); --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org