Applied tah!

On Wed, 4 Jun 2003 10:15 pm, Anton Tagunov wrote:
> Hello, Developers!
>
> What do you think of the following patch?
> comment:
>     Fortress passes classloader under ClassLoader.class.getName()
>
> --- DefaultLogTargetFactoryManager.orig 2003-06-04 09:27:56.000000000 +0400
> +++ DefaultLogTargetFactoryManager.java 2003-06-04 16:10:36.000000000 +0400
> @@ -112,11 +112,18 @@
>          m_context = context;
>          try
>          {
> -            m_classLoader = (ClassLoader)m_context.get( "classloader" );
> +            m_classLoader = (ClassLoader) m_context.get(
> ClassLoader.class.getName() ); }
>          catch( ContextException ce )
>          {
> -            m_classLoader =
> Thread.currentThread().getContextClassLoader(); +            try
> +            {
> +                m_classLoader = (ClassLoader) m_context.get( "classloader"
> ); +            }
> +            catch( ContextException ce2 )
> +            {
> +                m_classLoader =
> Thread.currentThread().getContextClassLoader(); +            }
>          }
>      }
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Cheers,

Peter Donald
*------------------------------------------------*
| You can't wake a person who is pretending      |
|       to be asleep. -Navajo Proverb.           |
*------------------------------------------------* 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to