This is an automated email from the ASF dual-hosted git repository. ggregory pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/commons-logging.git
The following commit(s) were added to refs/heads/master by this push: new 0d8b8e0 Update deprecated call in org.apache.commons.logging.PathableClassLoader.addLogicalLib(String) new 0e0ef68 Merge branch 'master' of https://github.com/apache/commons-logging.git 0d8b8e0 is described below commit 0d8b8e0f5e62de879e54786f0bd42b91c194c2ae Author: Gary D. Gregory <garydgreg...@gmail.com> AuthorDate: Fri Jun 20 08:06:16 2025 -0400 Update deprecated call in org.apache.commons.logging.PathableClassLoader.addLogicalLib(String) --- src/changes/changes.xml | 1 + src/test/java/org/apache/commons/logging/PathableClassLoader.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 6a56368..7257e15 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -48,6 +48,7 @@ The <action> type attribute can be add,update,fix,remove. <release version="1.3.6" date="YYYY-MM-DD" description="This is a feature and maintenance release. Java 8 or later is required."> <!-- FIX --> <action dev="ggregory" type="fix" due-to="Gary Gregory">Fix running spotbugs:check: Unable to parse configuration of mojo.</action> + <action dev="ggregory" type="fix" due-to="Gary Gregory">Update deprecated call in org.apache.commons.logging.PathableClassLoader.addLogicalLib(String).</action> <!-- ADD --> <!-- UPDATE --> <action dev="ggregory" type="update" due-to="Gary Gregory, Dependabot">Bump org.apache.commons:commons-parent from 81 to 85 #361, #367.</action> diff --git a/src/test/java/org/apache/commons/logging/PathableClassLoader.java b/src/test/java/org/apache/commons/logging/PathableClassLoader.java index 9b996c2..edac253 100644 --- a/src/test/java/org/apache/commons/logging/PathableClassLoader.java +++ b/src/test/java/org/apache/commons/logging/PathableClassLoader.java @@ -127,7 +127,7 @@ public class PathableClassLoader extends URLClassLoader { if (!file.exists()) { Assert.fail("Unable to add logical library " + fileName); } - addURL(file.toURL()); + addURL(file.toURI().toURL()); return; } catch (final java.net.MalformedURLException e) { throw new UnknownError(