Oops... Minor errors.
authorjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 20 May 2010 15:50:51 +0000 (15:50 +0000)
committerjfclere <jfclere@13f79535-47bb-0310-9956-ffa450edef68>
Thu, 20 May 2010 15:50:51 +0000 (15:50 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@946677 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/core/AprLifecycleListener.java
java/org/apache/tomcat/util/net/AprEndpoint.java

index daa5a7d..63a1bfb 100644 (file)
@@ -72,7 +72,7 @@ public class AprLifecycleListener
     protected static boolean sslAvailable = false;
     protected static boolean aprAvailable = false;
 
-    protected static String lock = "";
+    protected static Object lock = new Object();
 
     public static boolean isAprAvailable() {
         //https://issues.apache.org/bugzilla/show_bug.cgi?id=48613
index 5929e63..610fe4a 100644 (file)
@@ -370,7 +370,7 @@ public class AprEndpoint extends AbstractEndpoint {
         if (initialized)
             return;
         if (!AprLifecycleListener.isAprAvailable()) {
-            throw new Exception(sm.getString("endpoint.init.notavail");
+            throw new Exception(sm.getString("endpoint.init.notavail"));
         }
         
         // Create the root APR memory pool