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-jasper/jasper2/src/share/org/apache/jasper JspCompilationContext.java
Date Tue, 17 Aug 2004 09:05:50 GMT
remm        2004/08/17 02:05:50

  Modified:    jasper2/src/share/org/apache/jasper
                        JspCompilationContext.java
  Log:
  - Add missing check.
  - It worked for me because I had removed Ant.
  
  Revision  Changes    Path
  1.50      +8 -6      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java
  
  Index: JspCompilationContext.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/JspCompilationContext.java,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- JspCompilationContext.java	16 Aug 2004 23:48:36 -0000	1.49
  +++ JspCompilationContext.java	17 Aug 2004 09:05:50 -0000	1.50
  @@ -202,12 +202,14 @@
               // Log ?
               // FIXME: log
           }
  -        try {
  -            jspCompiler = 
  -                (Compiler) Class.forName("org.apache.jasper.compiler.AntCompiler").newInstance();
  -        } catch (Throwable t) {
  -            // Log ?
  -            // FIXME: log
  +        if (jspCompiler == null) {
  +            try {
  +                jspCompiler = 
  +                    (Compiler) Class.forName("org.apache.jasper.compiler.AntCompiler").newInstance();
  +            } catch (Throwable t) {
  +                // Log ?
  +                // FIXME: log
  +            }
           }
           jspCompiler.init(this, jsw);
           return jspCompiler;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message