This is an automated email from the ASF dual-hosted git repository.
markt 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 c47aaa6952 Document implementation expectations
c47aaa6952 is described below
commit c47aaa6952d716d5ab03750321c711214cb18cab
Author: Mark Thomas <[email protected]>
AuthorDate: Mon Sep 1 12:28:37 2025 +0100
Document implementation expectations
---
java/org/apache/jasper/compiler/ErrorHandler.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/java/org/apache/jasper/compiler/ErrorHandler.java
b/java/org/apache/jasper/compiler/ErrorHandler.java
index 5e5e22c683..e2217f45c2 100644
--- a/java/org/apache/jasper/compiler/ErrorHandler.java
+++ b/java/org/apache/jasper/compiler/ErrorHandler.java
@@ -30,6 +30,9 @@ public interface ErrorHandler {
/**
* Processes the given JSP parse error.
+ * <p>
+ * It is expected (and Jasper is coded based on this) that calls to this
method will always result in a
+ * {@code JasperException} being thrown.
*
* @param fname Name of the JSP file in which the parse error occurred
* @param line Parse error line number
@@ -43,6 +46,9 @@ public interface ErrorHandler {
/**
* Processes the given JSP parse error.
+ * <p>
+ * It is expected (and Jasper is coded based on this) that calls to this
method will always result in a
+ * {@code JasperException} being thrown.
*
* @param msg Parse error message
* @param exception Parse exception
@@ -53,6 +59,9 @@ public interface ErrorHandler {
/**
* Processes the given javac compilation errors.
+ * <p>
+ * It is expected (and Jasper is coded based on this) that calls to this
method will always result in a
+ * {@code JasperException} being thrown.
*
* @param details Array of JavacErrorDetail instances corresponding to the
compilation errors
*
@@ -62,6 +71,9 @@ public interface ErrorHandler {
/**
* Processes the given javac error report and exception.
+ * <p>
+ * It is expected (and Jasper is coded based on this) that calls to this
method will always result in a
+ * {@code JasperException} being thrown.
*
* @param errorReport Compilation error report
* @param exception Compilation exception
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]