1 <p> The code synchronizes on interned String.
3 private static String LOCK = "LOCK";
5 synchronized(LOCK) { ...}
9 <p>Constant Strings are interned and shared across all other classes loaded by the JVM. Thus, this could
10 is locking on something that other code might also be locking. This could result in very strange and hard to diagnose
11 blocking and deadlock behavior. See <a href="http://www.javalobby.org/java/forums/t96352.html">http://www.javalobby.org/java/forums/t96352.html</a> and <a href="http://jira.codehaus.org/browse/JETTY-352">http://jira.codehaus.org/browse/JETTY-352</a>.