You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by vi...@apache.org on 2015/01/22 13:02:08 UTC

svn commit: r1653819 - /tomcat/trunk/java/org/apache/jasper/compiler/Generator.java

Author: violetagg
Date: Thu Jan 22 12:02:07 2015
New Revision: 1653819

URL: http://svn.apache.org/r1653819
Log:
When generating a list of package and class imports, the processing of classes was omitted. Issue is reported by Coverity Scan.

Modified:
    tomcat/trunk/java/org/apache/jasper/compiler/Generator.java

Modified: tomcat/trunk/java/org/apache/jasper/compiler/Generator.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/compiler/Generator.java?rev=1653819&r1=1653818&r2=1653819&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/compiler/Generator.java (original)
+++ tomcat/trunk/java/org/apache/jasper/compiler/Generator.java Thu Jan 22 12:02:07 2015
@@ -586,7 +586,7 @@ class Generator {
                 out.println("\");");
             }
         }
-        if (packages.size() == 0) {
+        if (classes.size() == 0) {
             out.printin("_jspx_imports_classes = null;");
             out.println();
         } else {



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