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
The following commit(s) were added to refs/heads/9.0.x by this push:
new 2cd792a8b6 Java compatibility
2cd792a8b6 is described below
commit 2cd792a8b615139b8b3fae9f17980ce7c6a2ac3f
Author: remm <[email protected]>
AuthorDate: Thu Oct 1 14:45:14 2026 +0200
Java compatibility
---
java/org/apache/tomcat/util/buf/CloseableURLConnection.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
b/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
index a6caa20616..df25327d0d 100644
--- a/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
+++ b/java/org/apache/tomcat/util/buf/CloseableURLConnection.java
@@ -146,7 +146,8 @@ public final class CloseableURLConnection extends
URLConnection implements AutoC
} catch (Throwable t) {
ExceptionUtils.handleThrowable(t);
}
- } else if (connection instanceof JarURLConnection jarConn) {
+ } else if (connection instanceof JarURLConnection) {
+ JarURLConnection jarConn = (JarURLConnection) connection;
// Most JarFile cannot be closed
if (isPrivateJdkJarFile(jarConn)) {
try (@SuppressWarnings("unused")
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]