Fix https://issues.apache.org/bugzilla/show_bug.cgi?id=42693
authormarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 23 Nov 2008 21:25:22 +0000 (21:25 +0000)
committermarkt <markt@13f79535-47bb-0310-9956-ffa450edef68>
Sun, 23 Nov 2008 21:25:22 +0000 (21:25 +0000)
I want to do some more testing before proposing this one

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@720046 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/jasper/compiler/Compiler.java

index 5c5c48a..ee4204a 100644 (file)
@@ -334,7 +334,7 @@ public abstract class Compiler {
                 generateClass(smap);
             }
         } finally {
-            if (tfp != null) {
+            if (tfp != null && ctxt.isPrototypeMode()) {
                 tfp.removeProtoTypeFiles(null);
             }
             // Make sure these object which are only used during the