tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/compiler JasperMangler.java
Date Tue, 30 Sep 2003 04:49:59 GMT
billbarker    2003/09/29 21:49:59

  Modified:    src/share/org/apache/jasper/compiler JasperMangler.java
  Log:
  Fix problem with empty JSP file.
  
  Fix for bug #23478.
  Reported By: Jens jms@mail.de
  
  Revision  Changes    Path
  1.12      +1 -1      jakarta-tomcat/src/share/org/apache/jasper/compiler/JasperMangler.java
  
  Index: JasperMangler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JasperMangler.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- JasperMangler.java	22 Sep 2003 09:17:46 -0000	1.11
  +++ JasperMangler.java	30 Sep 2003 04:49:59 -0000	1.12
  @@ -168,7 +168,7 @@
   	// Fix for invalid characters. From CommandLineCompiler
   	StringBuffer modifiedClassName = new StringBuffer();
   	char c='/';
  -	if( Character.isDigit( className.charAt( 0 )  )) {
  +	if( className.length() > 0 && Character.isDigit( className.charAt( 0 )  ))
{
   	    className="_" +className;
   	}
   	for (int i = 0; i < className.length(); i++) {
  
  
  

Mime
View raw message