cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vgritse...@hns.com>
Subject RE: ClassUtils.java
Date Mon, 14 May 2001 19:45:46 GMT
> -----Original Message-----
> From: Leo Sutic [mailto:leo.sutic@inspireinfrastructure.com]
> Sent: Monday, May 14, 2001 13:55
> To: Cocoon Developer's List
> Subject: ClassUtils.java
> 
> 
> Found this in ClassUtils.java:
> 
>     public static ClassLoader getClassLoader() {
>         if (ClassUtils.loader == null) {
>             setClassLoader(ClassUtils.class.getClassLoader());
>         }
> 
>         return ClassUtils.loader;
>     }
> 
> Seems to lead to infinite recursion if ClassUtils.loader is null when
> entering the method. Or am I missing something?

Your are missing ".class." in "ClassUtils.class.getClassLoader()".
:)

Vadim

> 
> /LS
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
> For additional commands, email: cocoon-dev-help@xml.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message