git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@603340
13f79535-47bb-0310-9956-
ffa450edef68
*/
boolean antiJARLocking = false;
- /**
- * Lock to prevent attempts to load duplicate classes from external
- * repositories.
- */
- private Object lock = new Object();
-
// ----------------------------------------------------------- Constructors
}
if ((clazz == null) && hasExternalRepositories) {
try {
- synchronized (lock) {
+ synchronized (this) {
clazz = super.findClass(name);
}
} catch(AccessControlException ace) {