This is an automated email from the ASF dual-hosted git repository. rmaucher pushed a commit to branch 9.0.x in repository https://gitbox.apache.org/repos/asf/tomcat.git
commit 811f663e1f2d129ac8d200e7cb05a0044ce3e410 Author: remm <[email protected]> AuthorDate: Thu Sep 17 15:40:49 2026 +0200 Fix Java compat --- java/org/apache/catalina/startup/ContextRuleSet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/org/apache/catalina/startup/ContextRuleSet.java b/java/org/apache/catalina/startup/ContextRuleSet.java index 8c29539c6d..973cbe12ff 100644 --- a/java/org/apache/catalina/startup/ContextRuleSet.java +++ b/java/org/apache/catalina/startup/ContextRuleSet.java @@ -209,7 +209,8 @@ final class SetDeployedFromServerXmlRule extends Rule { @Override public void begin(String namespace, String name, Attributes attributes) throws Exception { - if (digester.peek() instanceof StandardContext context) { + if (digester.peek() instanceof StandardContext) { + StandardContext context = (StandardContext) digester.peek(); context.setDeployedFromServerXml(true); if (digester.getLogger().isTraceEnabled()) { digester.getLogger().trace("Calling StandardContext.setDeployedFromServerXml(true)"); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
