This is an automated email from the ASF dual-hosted git repository.
rmaucher pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new cbb38e0fbc Java compatibility
cbb38e0fbc is described below
commit cbb38e0fbcdc5c625698581444e487dda78dd763
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 2da194b5ee..2ea6971558 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]