geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/config Configuration.java
Date Fri, 16 Jan 2004 20:30:32 GMT
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);
  +            }
           }
       }
   
  
  
  

Mime
View raw message