geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject cvs commit: incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/loader ClassSpace.java
Date Sun, 14 Sep 2003 11:57:37 GMT
janb        2003/09/14 04:57:37

  Modified:    modules/kernel/src/java/org/apache/geronimo/kernel/deployment/loader
                        ClassSpace.java
  Log:
  Set the parent classloader.
  
  Revision  Changes    Path
  1.2       +5 -2      incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/loader/ClassSpace.java
  
  Index: ClassSpace.java
  ===================================================================
  RCS file: /home/cvs/incubator-geronimo/modules/kernel/src/java/org/apache/geronimo/kernel/deployment/loader/ClassSpace.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- ClassSpace.java	8 Sep 2003 04:38:33 -0000	1.1
  +++ ClassSpace.java	14 Sep 2003 11:57:37 -0000	1.2
  @@ -78,7 +78,10 @@
        * @jmx:managed-constructor
        */
       public ClassSpace(String name, URL[] urls) {
  -        super(urls);
  +        super(urls,
  +	      Thread.currentThread().getContextClassLoader() == null?
  +	      ClassSpace.class.getClassLoader():
  +	      Thread.currentThread().getContextClassLoader());
           this.name = name;
           for (int i = 0; i < urls.length; i++) {
               URL url = urls[i];
  
  
  

Mime
View raw message