@@ -, +, @@
---
java/org/apache/jasper/JspC.java | 25 ++++++++++++++-----------
1 file changed, 14 insertions(+), 11 deletions(-)
--- a/java/org/apache/jasper/JspC.java
+++ a/java/org/apache/jasper/JspC.java
@@ -1167,19 +1167,22 @@ public class JspC extends Task implements Options {
}
if (servletout != null) {
- servletout.write("\n \n ");
- servletout.write(thisServletName);
- servletout.write("\n ");
- servletout.write(thisServletName);
- servletout.write("\n \n");
+ synchronized(servletout) {
+ servletout.write("\n \n ");
+ servletout.write(thisServletName);
+ servletout.write("\n ");
+ servletout.write(thisServletName);
+ servletout.write("\n \n");
+ }
}
if (mappingout != null) {
- mappingout.write("\n \n ");
- mappingout.write(thisServletName);
- mappingout.write("\n ");
- mappingout.write(file.replace('\\', '/'));
- mappingout.write("\n \n");
-
+ synchronized(mappingout) {
+ mappingout.write("\n \n ");
+ mappingout.write(thisServletName);
+ mappingout.write("\n ");
+ mappingout.write(file.replace('\\', '/'));
+ mappingout.write("\n \n");
+ }
}
}
--