User: juhalindfors
Date: 01/12/05 06:26:13
Modified: src/main/org/jboss/mx/loading BasicLoaderRepository.java
Log:
David Jencks' fix.
Revision Changes Path
1.2 +3 -5 jmx/src/main/org/jboss/mx/loading/BasicLoaderRepository.java
Index: BasicLoaderRepository.java
===================================================================
RCS file:
/cvsroot/jboss/jmx/src/main/org/jboss/mx/loading/BasicLoaderRepository.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- BasicLoaderRepository.java 2001/12/03 02:13:31 1.1
+++ BasicLoaderRepository.java 2001/12/05 14:26:13 1.2
@@ -58,17 +58,15 @@
if (cl != skipLoader) {
try {
clazz = cl.loadClass(className);
+ return clazz;
}
catch (ClassNotFoundException ignored) {
// go on and try the next loader
}
}
}
-
- if (clazz == null)
- throw new ClassNotFoundException(className);
-
- return clazz;
+
+ throw new ClassNotFoundException(className);
}
public void addClassLoader(ClassLoader cl) {
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development