This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new b987582d95 Additional reproducibility fixes for JSP generation
b987582d95 is described below
commit b987582d9575fd5241c53264a5ff93c58be968a1
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Apr 8 17:07:42 2026 +0100
Additional reproducibility fixes for JSP generation
---
java/org/apache/jasper/compiler/Generator.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/jasper/compiler/Generator.java
b/java/org/apache/jasper/compiler/Generator.java
index 5bea80d5aa..346cfd4b37 100644
--- a/java/org/apache/jasper/compiler/Generator.java
+++ b/java/org/apache/jasper/compiler/Generator.java
@@ -31,6 +31,7 @@ import java.util.Collections;
import java.util.Date;
import java.util.HashMap;
import java.util.HashSet;
+import java.util.LinkedHashSet;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
@@ -573,8 +574,8 @@ class Generator {
// Static data for getImports()
List<String> imports = pageInfo.getImports();
- Set<String> packages = new HashSet<>();
- Set<String> classes = new HashSet<>();
+ Set<String> packages = new LinkedHashSet<>();
+ Set<String> classes = new LinkedHashSet<>();
for (String importName : imports) {
String trimmed = importName.trim();
if (trimmed.endsWith(".*")) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]