This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new 9ec36cff94 Fix regression if ECJ 4.35 / 3.41 is used (would require
manual upgrade)
9ec36cff94 is described below
commit 9ec36cff94d24d5bc0c91419f3ebec1b6f0539ab
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Mar 28 17:18:56 2025 +0000
Fix regression if ECJ 4.35 / 3.41 is used (would require manual upgrade)
Be explicit that JSPs and tags use the unnamed module
---
java/org/apache/jasper/compiler/JDTCompiler.java | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/java/org/apache/jasper/compiler/JDTCompiler.java
b/java/org/apache/jasper/compiler/JDTCompiler.java
index 71f6c5b4c6..d57303d614 100644
--- a/java/org/apache/jasper/compiler/JDTCompiler.java
+++ b/java/org/apache/jasper/compiler/JDTCompiler.java
@@ -51,6 +51,8 @@ import org.eclipse.jdt.internal.compiler.env.ICompilationUnit;
import org.eclipse.jdt.internal.compiler.env.INameEnvironment;
import org.eclipse.jdt.internal.compiler.env.NameEnvironmentAnswer;
import org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
+import org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment;
+import org.eclipse.jdt.internal.compiler.lookup.ModuleBinding;
import org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory;
/**
@@ -141,6 +143,16 @@ public class JDTCompiler extends
org.apache.jasper.compiler.Compiler {
public boolean ignoreOptionalProblems() {
return false;
}
+
+ @Override
+ public ModuleBinding module(LookupEnvironment environment) {
+ return environment.getModule(ModuleBinding.UNNAMED);
+ }
+
+ @Override
+ public char[] getModuleName() {
+ return ModuleBinding.UNNAMED;
+ }
}
final INameEnvironment env = new INameEnvironment() {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]