/**
* Crete a new Context's instance.
*/
+ @SuppressWarnings("unchecked")
+ @Override
public Object getObjectInstance(Object obj, Name name, Context nameCtx,
Hashtable<?,?> environment)
throws NamingException {
/**
* Get a new (writable) initial context.
*/
+ @SuppressWarnings("unchecked")
+ @Override
public Context getInitialContext(Hashtable<?,?> environment)
throws NamingException {
if (ContextBindings.isThreadBound() ||
// If the thread is not bound, return a shared writable context
if (initialContext == null) {
- synchronized(getClass()) {
+ synchronized(javaURLContextFactory.class) {
if (initialContext == null) {
initialContext = new NamingContext(
(Hashtable<String,Object>)environment, MAIN);
ensure that a subsequent request for that directory does not result in a
404 response. (markt)
</fix>
+ <fix>
+ <bug>50554</bug>: Code clean up. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">