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 a15ab2eac9 Fix regression when updating to ECJ 4.35 / 3.41
a15ab2eac9 is described below
commit a15ab2eac993b106c7e69badd4aa432e1451fc4d
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Mar 28 17:18:56 2025 +0000
Fix regression when updating to ECJ 4.35 / 3.41
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 554d1adb6e..60f5ae4309 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]