ASF Bugzilla – Attachment 36867 Details for
Bug 63897
Jasper doesn't recompile a JSP if it was modified while being compiled
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Compiler patch
jasper-compiler-lastmodified-fix.diff (text/plain), 814 bytes, created by
Karl von Randow
on 2019-10-31 21:10:28 UTC
(
hide
)
Description:
Compiler patch
Filename:
MIME Type:
Creator:
Karl von Randow
Created:
2019-10-31 21:10:28 UTC
Size:
814 bytes
patch
obsolete
>diff --git a/java/org/apache/jasper/compiler/Compiler.java b/java/org/apache/jasper/compiler/Compiler.java >index 207a978bc5..748bb892d3 100644 >--- a/java/org/apache/jasper/compiler/Compiler.java >+++ b/java/org/apache/jasper/compiler/Compiler.java >@@ -382,9 +382,9 @@ public abstract class Compiler { > } > > try { >+ final Long jspLastModified = ctxt.getLastModified(ctxt.getJspFile()); > Map<String,SmapStratum> smaps = generateJava(); > File javaFile = new File(ctxt.getServletJavaFileName()); >- Long jspLastModified = ctxt.getLastModified(ctxt.getJspFile()); > if (!javaFile.setLastModified(jspLastModified.longValue())) { > throw new JasperException(Localizer.getMessage("jsp.error.setLastModified", javaFile)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 63897
: 36867