This is an automated email from the ASF dual-hosted git repository.

rmaucher pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 199ffe376c Jasper cannot operate without a work folder
199ffe376c is described below

commit 199ffe376ce1a7abf723682469b6b1aa450f5d75
Author: remm <[email protected]>
AuthorDate: Mon May 25 20:55:45 2026 +0200

    Jasper cannot operate without a work folder
    
    Even if it could, the options would be half initialized and not
    functional, so use an ISE instead.
---
 java/org/apache/jasper/EmbeddedServletOptions.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/java/org/apache/jasper/EmbeddedServletOptions.java 
b/java/org/apache/jasper/EmbeddedServletOptions.java
index e2036e3cb8..e9dc23a0d5 100644
--- a/java/org/apache/jasper/EmbeddedServletOptions.java
+++ b/java/org/apache/jasper/EmbeddedServletOptions.java
@@ -697,8 +697,7 @@ public final class EmbeddedServletOptions implements 
Options {
             scratchDir = (File) context.getAttribute(ServletContext.TEMPDIR);
         }
         if (scratchDir == null) {
-            log.fatal(Localizer.getMessage("jsp.error.no.scratch.dir"));
-            return;
+            throw new 
IllegalStateException(Localizer.getMessage("jsp.error.no.scratch.dir"));
         }
 
         if (!(scratchDir.exists() && scratchDir.canRead() && 
scratchDir.canWrite() && scratchDir.isDirectory())) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to