Revert fix for 43741. Aim for better fix that handles tag files in JARs.
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 1 Feb 2008 22:32:13 +0000 (22:32 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Fri, 1 Feb 2008 22:32:13 +0000 (22:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@617682 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/JspCompilationContext.java

index 5a45042..0fe40f3 100644 (file)
@@ -554,15 +554,7 @@ public class JspCompilationContext {
     
     public void compile() throws JasperException, FileNotFoundException {
         createCompiler();
-        boolean outDated;
-        if (isPackagedTagFile) {
-            // Tags in JARs only need to be compiled once
-            // If the JAR changes, the app needs to be re-loaded
-            outDated = !(new File(getClassFileName()).exists());
-        } else {
-            outDated = jspCompiler.isOutDated();
-        }
-        if (outDated) {
+        if (isPackagedTagFile || jspCompiler.isOutDated()) {
             try {
                 jspCompiler.removeGeneratedFiles();
                 jspLoader = null;