From: slaurent Date: Sun, 12 Dec 2010 00:16:33 +0000 (+0000) Subject: bug 50459: StandardContext.bindThread() and unbindThread() are not symmetrical and... X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=559c434e6605952b186555ed3d9d57fd9709988f;p=tomcat7.0 bug 50459: StandardContext.bindThread() and unbindThread() are not symmetrical and not limited to current thread https://issues.apache.org/bugzilla/show_bug.cgi?id=50459 Fixed incorrect comment in code git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1044747 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/catalina/core/StandardContext.java b/java/org/apache/catalina/core/StandardContext.java index ac48d8d64..51e2ff2d0 100644 --- a/java/org/apache/catalina/core/StandardContext.java +++ b/java/org/apache/catalina/core/StandardContext.java @@ -4863,8 +4863,9 @@ public class StandardContext extends ContainerBase ((Lifecycle) loader).start(); // since the loader just started, the webapp classloader is now - // created by calling unbindThread and bindThread in a row, we - // setup the current Thread CCL to be the webapp classloader + // created. + // By calling unbindThread and bindThread in a row, we setup the + // current Thread CCL to be the webapp classloader unbindThread(oldCCL); oldCCL = bindThread();