mx4j/src/core/mx4j/server MBeanIntrospector.java,1.31,1.32
Simone Bordet <[email protected]> Sun, 21 Nov 2004 14:06:12 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/mx4j/server
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21362/src/core/mx4j/server
Modified Files:
MBeanIntrospector.java
Log Message:
Fix for when mx4j is in bootclasspath: use the context classloader if the class' classloader is null
Index: MBeanIntrospector.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/mx4j/server/MBeanIntrospector.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** MBeanIntrospector.java 13 Nov 2004 16:38:29 -0000 1.31
--- MBeanIntrospector.java 21 Nov 2004 14:06:10 -0000 1.32
***************
*** 89,93 ****
try
{
! getClass().getClassLoader().loadClass("org.apache.bcelAvailable.generic.Type");
bcelAvailable = true;
}
--- 89,95 ----
try
{
! ClassLoader loader = getClass().getClassLoader();
! if (loader == null) loader = Thread.currentThread().getContextClassLoader();
! loader.loadClass("org.apache.bcelAvailable.generic.Type");
bcelAvailable = true;
}
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8