tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From man...@locus.apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler BeanGenerator.java
Date Tue, 25 Apr 2000 00:07:55 GMT
mandar      00/04/24 17:07:55

  Modified:    src/share/org/apache/jasper/compiler BeanGenerator.java
  Log:
  Bug fix for #248:
  
  "extends" attribute of page directive results in uncompilable source code
  
  Fix is to use getClassLoader() method on the generated servlet class
  instead of using the HttpJspBase.getClassLoader() thus removing the
  dependency on the super-class.
  
  Revision  Changes    Path
  1.6       +5 -5      jakarta-tomcat/src/share/org/apache/jasper/compiler/BeanGenerator.java
  
  Index: BeanGenerator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/BeanGenerator.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BeanGenerator.java	2000/04/05 21:09:58	1.5
  +++ BeanGenerator.java	2000/04/25 00:07:54	1.6
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/BeanGenerator.java,v
1.5 2000/04/05 21:09:58 mandar Exp $
  - * $Revision: 1.5 $
  - * $Date: 2000/04/05 21:09:58 $
  + * $Header: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/BeanGenerator.java,v
1.6 2000/04/25 00:07:54 mandar Exp $
  + * $Revision: 1.6 $
  + * $Date: 2000/04/25 00:07:54 $
    * The Apache Software License, Version 1.1
    *
    * Copyright (c) 1999 The Apache Software Foundation.  All rights 
  @@ -343,11 +343,11 @@
   	writer.pushIndent ();
   	if (beanRT == false)
   	    writer.println(varname+" = ("+ convert + 
  -			   ") Beans.instantiate(getClassLoader(), "+
  +			   ") Beans.instantiate(this.getClass().getClassLoader(), "+
   			   writer.quoteString(clsname) +");");
   	else
   	    writer.println(varname+" = ("+ convert + 
  -			   ") Beans.instantiate(getClassLoader(), "+
  +			   ") Beans.instantiate(this.getClass().getClassLoader(), "+
   			   clsname +");");
   	writer.popIndent ();
   	writer.println ("} catch (Exception exc) {");
  
  
  

Mime
View raw message