jboynes 2004/01/16 12:30:32
Modified: modules/kernel/src/java/org/apache/geronimo/kernel/config
Configuration.java
Log:
delegate to parent if class not found
this allows primitive types (which breaks dain's code)
Revision Changes Path
1.4 +7 -2
incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/config/Configuration.java
Index: Configuration.java
===================================================================
RCS file:
/home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/config/Configuration.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Configuration.java 14 Jan 2004 22:16:38 -0000 1.3
+++ Configuration.java 16 Jan 2004 20:30:32 -0000 1.4
@@ -265,7 +265,12 @@
}
protected Class resolveClass(ObjectStreamClass desc) throws
IOException, ClassNotFoundException {
- return cl.loadClass(desc.getName());
+ try {
+ return cl.loadClass(desc.getName());
+ } catch (ClassNotFoundException e) {
+ // let the parent try
+ return super.resolveClass(desc);
+ }
}
}