tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet JasperLoader.java
Date Sat, 02 Jun 2001 20:22:19 GMT
remm        01/06/02 13:22:19

  Modified:    jasper/src/share/org/apache/jasper/servlet JasperLoader.java
  Log:
  - Experimental patch : Jasper will use the context classloader as the parent
    classloader. I didn't notice any problems, so I'm committing the patch (which
    will be very easy to revert if there are problems).
  - This makes the Jasper specific classpath request attribute obsolete. The code
    can probably be removed once testing shows that this patch doesn't break
    anything.
  
  Revision  Changes    Path
  1.4       +3 -2      jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JasperLoader.java
  
  Index: JasperLoader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/jasper/src/share/org/apache/jasper/servlet/JasperLoader.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- JasperLoader.java	2001/02/08 13:38:24	1.3
  +++ JasperLoader.java	2001/06/02 20:22:19	1.4
  @@ -171,9 +171,10 @@
               }                              
           }
   
  -	// Class is in a package, delegate to parent
  +	// Class is in a package, delegate to thread context class loader
   	if( !name.startsWith(Constants.JSP_PACKAGE_NAME) ) {
  -	    clazz = parent.loadClass(name);
  +	    clazz = Thread.currentThread().getContextClassLoader()
  +                .loadClass(name);
   	    if( resolve )
   		resolveClass(clazz);
   	    return clazz;
  
  
  

Mime
View raw message