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

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/main by this push:
     new 45096a34db Additional reproducibility fixes for JSP generation
45096a34db is described below

commit 45096a34dbf9c1cf91209459a080ea870eb294c3
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 2138656b49..26593e3dfa 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;
@@ -569,8 +570,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]

Reply via email to